1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/lang/ecl/files/extra-patch-src_aclocal.m4
Niclas Zeising cc152a03d8 lang/ecl: Update to 20.4.24
Update lang/ecl to 20.4.24.

PR:		247283
Reviewed by:	thierry
Approved by:	olgeni (maintainer)
2020-07-04 17:28:48 +00:00

65 lines
2.7 KiB
Plaintext

--- src/aclocal.m4.orig 2020-04-24 10:54:52 UTC
+++ src/aclocal.m4
@@ -246,6 +246,8 @@ AC_SUBST(LIBPREFIX)dnl Name components of a statically
AC_SUBST(LIBEXT)
AC_SUBST(SHAREDEXT)dnl Name components of a dynamically linked library
AC_SUBST(SHAREDPREFIX)
+AC_SUBST(IMPLIB_EXT)dnl Name components of a dynamically linked library import file - borrowed from SageMath
+AC_SUBST(IMPLIB_PREFIX)
AC_SUBST(OBJEXT)dnl These are set by autoconf
AC_SUBST(EXEEXT)
AC_SUBST(INSTALL_TARGET)dnl Which type of installation: flat directory or unix like.
@@ -257,6 +259,8 @@ ECL_GC_DIR=bdwgc
ECL_LDRPATH=''
SHAREDEXT='so'
SHAREDPREFIX='lib'
+IMPLIB_EXT=''
+IMPLIB_PREFIX=''
LIBPREFIX='lib'
LIBEXT='a'
PICFLAG='-fPIC'
@@ -268,6 +272,8 @@ THREAD_OBJ="$THREAD_OBJ threads/process threads/queue
clibs='-lm'
SONAME=''
SONAME_LDFLAGS=''
+IMPLIB_NAME=''
+IMPLIB_LDFLAGS=''
case "${host_os}" in
linux-android*)
thehost='android'
@@ -385,10 +391,14 @@ case "${host_os}" in
shared='yes'
THREAD_CFLAGS='-D_THREAD_SAFE'
THREAD_LIBS='-lpthread'
- SHARED_LDFLAGS="-shared ${LDFLAGS}"
- BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
- SHAREDPREFIX=''
+ SHARED_LDFLAGS="-shared -Wl,--enable-auto-image-base ${LDFLAGS}"
+ BUNDLE_LDFLAGS="-shared -Wl,--enable-auto-image-base ${LDFLAGS}"
+ SHAREDPREFIX='cyg'
SHAREDEXT='dll'
+ IMPLIB_PREFIX='lib'
+ IMPLIB_EXT='dll.a'
+ IMPLIB_NAME="${IMPLIB_PREFIX}ecl.${IMPLIB_EXT}"
+ IMPLIB_LDFLAGS="-Wl,--out-implib,${IMPLIB_NAME}"
PICFLAG=''
if test "x$host_cpu" = "xx86_64" ; then
# Our GMP library is too old and does not support
@@ -405,10 +415,14 @@ case "${host_os}" in
enable_threads='yes'
THREAD_CFLAGS='-D_THREAD_SAFE'
THREAD_GC_FLAGS='--enable-threads=win32'
- SHARED_LDFLAGS="-Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE}"
- BUNDLE_LDFLAGS="-Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE}"
+ SHARED_LDFLAGS="-shared -Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE} -Wl,--enable-auto-image-base ${LDFLAGS}"
+ BUNDLE_LDFLAGS="-shared -Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE} -Wl,--enable-auto-image-base ${LDFLAGS}"
SHAREDPREFIX=''
SHAREDEXT='dll'
+ IMPLIB_PREFIX='lib'
+ IMPLIB_EXT='dll.a'
+ IMPLIB_NAME="${IMPLIB_PREFIX}ecl.${IMPLIB_EXT}"
+ IMPLIB_LDFLAGS="-Wl,--out-implib,${IMPLIB_NAME}"
PICFLAG=''
INSTALL_TARGET='flatinstall'
TCPLIBS='-lws2_32'