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