FS#24145 - [openssl] Add system CFLAGS/LDFLAGS in PKGBUILD.
Attached to Project:
Arch Linux
Opened by Kristoffer Tidemann (ktide) - Saturday, 07 May 2011, 14:05 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 23 July 2011, 18:43 GMT
Opened by Kristoffer Tidemann (ktide) - Saturday, 07 May 2011, 14:05 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 23 July 2011, 18:43 GMT
|
Details
Something like this
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib \ shared zlib -Wa,--noexecstack ${CFLAGS} ${LDFLAGS} should suffice. The LDFLAGS should show up in EX_LIBS in the Summary ./config prints (Make sure to scroll up immediately :p) Note that OpenSSL will always build with -O3 since it's used later in the GCC command line and thus supersedes our -O2 which is probably a good thing and intended. Severity is medium since this needs to be fixed before the new CFLAGS/LDFLAGS are eventually introduced by Allan. |
This task depends upon
export CFLAGS="${CFLAGS} -fstack-protector-all -D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4"
export LDFLAGS="${LDFLAGS} -Wl,-z,relro"