- Don't rely on the vsf_findlibs.sh script to figure out the list
of libraries the build needs to link. The script is wildly unreliable and it's hard to predict what results it will produce. Also, the results it *does* produce are invisble in the build log. We stumbled across this issue when vsftpd suddendly had build failures on i586 platforms because the script decided to try and link "-lnsl" even though the library was neither installed nor required. - Drop the explicit specification of the LDFLAGS and LINK variables from the call to make. The value of LDFLAGS we passed is the default anyway and giving LINK has no effect since it's not used anywhere in the Makefile. OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=119
This commit is contained in:
@@ -137,9 +137,9 @@ tests.
|
||||
|
||||
%build
|
||||
%define seccomp_opts -D_GNU_SOURCE -DUSE_SECCOMP
|
||||
rm -f dummyinc/sys/capability.h
|
||||
rm dummyinc/sys/capability.h vsf_findlibs.sh
|
||||
make CFLAGS="%{optflags} -DOPENSSL_NO_SSL_INTERN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -fstack-protector --param=ssp-buffer-size=4 %{seccomp_opts}" \
|
||||
LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now" LINK=
|
||||
LIBS="-lpam -lcap -lssl -lcrypto"
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_datadir}/empty
|
||||
|
Reference in New Issue
Block a user