packages/mail/sendmail/files/OpenWrt
Eneas U de Queiroz 213fd4f64b sendmail: link with gcc instead of ld
If ld is used directly to link libmilter.so, linking is not done
correctly with glibc, and produces a library that can't be used.
Linking with the bad library produces a strange error:
ld: conftest: hidden symbol `stat' in [...]libc_nonshared.a(stat.oS)
is referenced by DSO

Using ld with musl works fine, but using gcc is a more portable way of
linking the shared library anyway.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-12-17 14:57:01 -08:00

61 lines
1.6 KiB
Text

dnl DO NOT EDIT THIS FILE.
dnl Place personal settings in devtools/Site/site.config.m4
define(`confDEPEND_TYPE', `CC-M')
define(`confCCOPTS_SO', `-fPIC')
define(`confSM_OS_HEADER', `sm_os_linux')
define(`confLIBS', `-ldl')
define(`confEBINDIR', `/usr/sbin')
define(`confMKDIR', `mkdir')
define(`confLIBSEARCHPATH', `STAGING_DIR/lib STAGING_DIR/usr/lib')
APPENDDEF(`confLIBSEARCH', `crypt')
define(`confMTCCOPTS', `-D_REENTRANT')
define(`confMTLDOPTS', `-lpthread')
define(`confLDOPTS_SO', `-shared')
define(`confSONAME',`-Wl,-soname')
define(`currentuser', esyscmd(`id -nu'))
define(`currentgroup', esyscmd(`id -ng'))
define(`confDONT_INSTALL_CATMAN',)
define(`confNO_MAN_BUILD',)
define(`confINCOWN', currentuser)
define(`confINCGRP', currentgroup)
define(`confINCMODE', `644')
define(`confLIBOWN', currentuser)
define(`confLIBGRP', currentgroup)
define(`confLIBMODE', `644')
define(`confMBINOWN', currentuser)
define(`confMBINGRP', currentgroup)
define(`confMBINMODE', `750')
define(`confSBINOWN', currentuser)
define(`confSBINGRP', currentgroup)
define(`confSBINMODE', `755')
define(`confUBINOWN', currentuser)
define(`confUBINGRP', currentgroup)
define(`confUBINMODE', `755')
define(`confGBINOWN', currentuser)
define(`confGBINGRP', currentgroup)
define(`confGBINMODE', `755')
define(`confMSPQOWN', currentuser)
ifelse(confBLDVARIANT, `DEBUG',
dnl Debug build
`
define(`confOPTIMIZE',`-g -Wall')
',
dnl Optimized build
confBLDVARIANT, `OPTIMIZED',
`
define(`confOPTIMIZE',`-O2')
',
dnl Purify build
confBLDVARIANT, `PURIFY',
`
define(`confOPTIMIZE',`-g')
',
dnl default
`
define(`confOPTIMIZE',`-O2')
')