diff options
author | Mikael Urankar <mikael@FreeBSD.org> | 2021-10-10 13:36:37 +0000 |
---|---|---|
committer | Mikael Urankar <mikael@FreeBSD.org> | 2021-10-10 13:36:37 +0000 |
commit | 33f3b768b854fe87864d88fbe9a2094951c030fa (patch) | |
tree | d650a56dc6581072cfc76d54f160c7f6d0957749 /databases/grass7 | |
parent | 18c5cc95237fcf9d63577b7f627d40705d0a25f9 (diff) | |
download | ports-33f3b768b854fe87864d88fbe9a2094951c030fa.tar.gz ports-33f3b768b854fe87864d88fbe9a2094951c030fa.zip |
databases/grass7: Fix build on aarch64.
Use the correct linker flag, ie: -Wl,--export-dynamic
Approved by: portmgr (build fix blanket)
Diffstat (limited to 'databases/grass7')
-rw-r--r-- | databases/grass7/files/patch-aclocal.m4 | 11 | ||||
-rw-r--r-- | databases/grass7/files/patch-configure | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/databases/grass7/files/patch-aclocal.m4 b/databases/grass7/files/patch-aclocal.m4 index c3fc06183ca0..393928138bdd 100644 --- a/databases/grass7/files/patch-aclocal.m4 +++ b/databases/grass7/files/patch-aclocal.m4 @@ -1,10 +1,15 @@ ---- aclocal.m4.orig 2020-01-25 14:44:25 UTC +--- aclocal.m4.orig 2020-12-21 18:40:15 UTC +++ aclocal.m4 -@@ -560,6 +560,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ +@@ -560,10 +560,11 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ # FreeBSD 3.* and greater have ELF. SHLIB_CFLAGS="-fPIC" #SHLIB_LD="ld -Bshareable -x" + SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$[@])" SHLIB_LD="${CC} -shared" + SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$[@])" SHLIB_SUFFIX=".so" - LDFLAGS="-export-dynamic" +- LDFLAGS="-export-dynamic" ++ LDFLAGS="-Wl,--export-dynamic" + #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' + LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}' + # TODO: add optional pthread support with any combination of: diff --git a/databases/grass7/files/patch-configure b/databases/grass7/files/patch-configure index fe7efd87db60..e40bff3e01a3 100644 --- a/databases/grass7/files/patch-configure +++ b/databases/grass7/files/patch-configure @@ -1,10 +1,15 @@ ---- configure.orig 2020-01-25 14:44:16 UTC +--- configure.orig 2020-12-21 18:40:15 UTC +++ configure -@@ -1591,6 +1591,7 @@ EOF +@@ -1603,10 +1603,11 @@ EOF # FreeBSD 3.* and greater have ELF. SHLIB_CFLAGS="-fPIC" #SHLIB_LD="ld -Bshareable -x" + SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)" SHLIB_LD="${CC} -shared" + SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)" SHLIB_SUFFIX=".so" - LDFLAGS="-export-dynamic" +- LDFLAGS="-export-dynamic" ++ LDFLAGS="-Wl,--export-dynamic" + #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' + LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}' + # TODO: add optional pthread support with any combination of: |