force -fPIC for everything

This commit is contained in:
Nalin Dahyabhai 2005-03-16 20:54:45 +00:00
parent 7469f4cedb
commit f1dd8437d2

View File

@ -44,8 +44,9 @@ automake-1.4 -a
autoconf autoconf
%build %build
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
if pkg-config openssl ; then if pkg-config openssl ; then
CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags openssl`"; export CFLAGS CFLAGS="$CFLAGS `pkg-config --cflags openssl`";
LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
fi fi
%configure --with-tcp-wrappers --with-pic %configure --with-tcp-wrappers --with-pic