- fix building on ppc
This commit is contained in:
parent
fe11c480c4
commit
0ddad06272
@ -167,7 +167,7 @@ done
|
||||
# generate redhat config file
|
||||
cat > redhat.config.m4 << EOF
|
||||
define(\`confMAPDEF', \`-DNEWDB -DNIS -DHESIOD -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
|
||||
define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')
|
||||
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
|
||||
define(\`confENVDEF', \`-I%{_includedir}/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_TLS_1')
|
||||
define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
|
||||
define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb')
|
||||
@ -181,12 +181,15 @@ define(\`confSTDIR', \`%{stdir}')
|
||||
define(\`STATUS_FILE', \`%{stdir}/statistics')
|
||||
define(\`confLIBSEARCH', \`db resolv 44bsd')
|
||||
EOF
|
||||
#'
|
||||
|
||||
%ifarch ppc ppc64 s390x
|
||||
cat >> redhat.config.m4 << EOF
|
||||
%ifarch ppc ppc64 s390x
|
||||
APPENDDEF(\`confOPTIMIZE', \`-DSM_CONF_SHM=0')
|
||||
EOF
|
||||
%else
|
||||
APPENDDEF(\`confOPTIMIZE', \`')
|
||||
%endif
|
||||
EOF
|
||||
|
||||
%if "%{enable_pie}" == "yes"
|
||||
%ifarch s390 s390x sparc sparcv9 sparc64
|
||||
|
Loading…
Reference in New Issue
Block a user