FS#11664 - Compilation of p7zip: make ignores CXXFLAGS
Attached to Project:
Arch Linux
Opened by Anton Shestakov (engored) - Monday, 06 October 2008, 12:38 GMT
Last edited by Hugo Doria (hdoria) - Thursday, 23 October 2008, 02:04 GMT
Opened by Anton Shestakov (engored) - Monday, 06 October 2008, 12:38 GMT
Last edited by Hugo Doria (hdoria) - Thursday, 23 October 2008, 02:04 GMT
|
Details
Description:
When trying to build p7zip from sources via ABS, make does not use local CXXFLAGS. It seems that one string in the PKGBUILD for the package is incorrect: > sed -i "s|-O1|$CXXFLAGS|g" makefile.machine and in both cases (for x86_64 and i686) makefile.machine contain this: > OPTFLAGS=-O so sed changes nothing. Additional info: * p7zip 4.58-3 Steps to reproduce: $ yaourt -Sb p7zip # or build from ABS manually look at output and note gcc flags during compilation |
This task depends upon
make all3 OPTFLAGS="${CXXFLAGS}"
and the multiple sed operations to change install.sh can be replaced by running:
make install DEST_HOME="${pkgdir}" DEST_MAN="${pkgdir}/usr/share/man}"