ports/lang/modula3/files/patch-m3-sys_cminstall_src_config-no-install_FreeBSD.common
John Marino a159ea43f1 lang/modula3: Enable some the pkg programs
A few of the pkg programs were made unexecutable -- they didn't work
anyway because the rtld couldn't find the libraries.  By relocating
them to cm3/bin and using symlinks instead fixes the issues.
2015-06-06 21:30:14 +00:00

41 lines
1.2 KiB
Text

--- m3-sys/cminstall/src/config-no-install/FreeBSD.common.orig 2015-06-02 07:41:14 UTC
+++ m3-sys/cminstall/src/config-no-install/FreeBSD.common
@@ -8,32 +8,11 @@ SYSTEM_LIBS{"ODBC"} = [ "-Wl,-R/usr/loca
SYSTEM_LIBS{"POSTGRES95"} = [ "-Wl,-R/usr/local/lib", "-L/usr/local/lib", "-lpq" ]
SYSTEM_LIBS{"X11"} = ["-Wl,-R/usr/local/lib", "-L/usr/local/lib", SYSTEM_LIBS{"X11"}]
-%
-% "Double inheritance" leads to FREEBSD4_CC_APPEND
-% occuring twice in FREEBSD_LD_APPEND, ok?
-%
-
-FREEBSD4_CC_APPEND = " -z origin"
-
-FREEBSD4_LD_APPEND = FREEBSD4_CC_APPEND
- & " -Wl,--warn-common"
- & " -Wl,-rpath,\\$ORIGIN"
- & " -Wl,-rpath,\\$ORIGIN/../lib "
-
-FREEBSD_CC_APPEND = FREEBSD4_CC_APPEND
- & " -z now"
- & " -Bsymbolic"
-
-FREEBSD_LD_APPEND = FREEBSD_CC_APPEND
- & FREEBSD4_LD_APPEND
- & " -Wl,--fatal-warnings"
-
-if defined("SYSTEM_CC")
- SYSTEM_CC = SYSTEM_CC & FREEBSD_CC_APPEND
-end
-
-if defined("SYSTEM_LD")
- SYSTEM_LD = SYSTEM_LD & FREEBSD_LD_APPEND
-end
+SYSTEM_LD = SYSTEM_CC
+ & " -Wl,-z,now"
+ & " -Wl,-z,origin"
+ & " -Bsymbolic"
+ & " -Wl,--fatal-warnings"
+ & " -Wl,-rpath,\\$ORIGIN/../lib"
include("gnuld.common")