mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
No longer use compat-gcc and compat-glibc in the RPM spec.
This may not be necessary anymore, and for the moment it prevents linking with libsvn on CentOS, because that library and others use -fstack-protector, which compat-glibc and compat-gcc are ignorant of.
This commit is contained in:
parent
12f26d32b4
commit
e2825c9659
1 changed files with 0 additions and 10 deletions
10
nmap.spec.in
10
nmap.spec.in
|
|
@ -49,16 +49,6 @@ both console and graphical versions are available.
|
|||
%setup -q
|
||||
|
||||
%build
|
||||
# Link with compatibility Glibc 2.3.4 CentOS packages
|
||||
# compat-glibc and compat-gcc-34-c++.
|
||||
CC=gcc34; export CC
|
||||
CXX=g++34; export CXX
|
||||
CPPFLAGS="-I/usr/lib/%{_target_cpu}-redhat-linux4E/include -B/usr/lib/%{_target_cpu}-redhat-linux4E/lib/ $CPPFLAGS"; export CPPFLAGS
|
||||
CFLAGS="-I/usr/lib/%{_target_cpu}-redhat-linux4E/include -B/usr/lib/%{_target_cpu}-redhat-linux4E/lib/ $CFLAGS"; export CFLAGS
|
||||
CXXFLAGS="-I/usr/lib/%{_target_cpu}-redhat-linux4E/include -B/usr/lib/%{_target_cpu}-redhat-linux4E/lib/ $CXXFLAGS"; export CXXFLAGS
|
||||
# Settings LDFLAGS seems logical but leads to an error on C++ link:
|
||||
# /usr/lib/gcc/i386-redhat-linux/3.4.6/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
|
||||
# LDFLAGS="-B/usr/lib/%{_target_cpu}-redhat-linux4E/lib/ $LDFLAGS"; export LDFLAGS
|
||||
|
||||
%configure --with-openssl=%{openssl} --without-zenmap --with-ndiff --with-nmap-update --with-libdnet=included --with-libpcap=included --with-libpcre=included --with-liblua=included
|
||||
%if "%{buildncat}" == "0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue