packages/mail/postfix/patches/500-crosscompile.patch
Christian Marangi 4b7d365b86
postfix: bump to 3.8.2 release
Bump postfix to 3.8.2 release.

Refresh patches and drop patch 502-detect-glibc.patch as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 15:16:41 +01:00

27 lines
821 B
Diff

--- a/makedefs
+++ b/makedefs
@@ -233,7 +233,7 @@ ARFL=rv
case $# in
# Officially supported usage.
- 0) SYSTEM=`(uname -s) 2>/dev/null`
+ 0) SYSTEM="OpenWRT"
RELEASE=`(uname -r) 2>/dev/null`
# No ${x%%y} support in Solaris 11 /bin/sh
RELEASE_MAJOR=`expr "$RELEASE" : '\([0-9]*\)'` || exit 1
@@ -247,6 +247,15 @@ case $# in
esac
case "$SYSTEM.$RELEASE" in
+ OpenWRT*) SYSTYPE=LINUX$RELEASE_MAJOR
+ SYSLIBS="$SYSLIBS -ldl"
+ : ${SHLIB_SUFFIX=.so}
+ : ${SHLIB_CFLAGS=-fPIC}
+ : ${SHLIB_LD="${CC-gcc} -shared"' -Wl,-soname,${LIB}'}
+ : ${SHLIB_RPATH='-Wl,--enable-new-dtags -Wl,-rpath,${SHLIB_DIR}'}
+ : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
+ : ${PLUGIN_LD="${CC-gcc} -shared"}
+ ;;
SCO_SV.3.2) SYSTYPE=SCO5
# Use the native compiler by default
: ${CC="/usr/bin/cc -b elf"}