From 1b729d157b2d85c1b5300fe1f7e0588a56727dd2 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 12 Jun 2019 06:14:43 -0600 Subject: [PATCH] cs: sync `LDFLAGS` for `racketcs` on BSDs --- racket/src/cs/c/configure | 10 ++++++++++ racket/src/cs/c/configure.ac | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/racket/src/cs/c/configure b/racket/src/cs/c/configure index 8dbacc4d5a..fb2fd5ff19 100755 --- a/racket/src/cs/c/configure +++ b/racket/src/cs/c/configure @@ -3902,9 +3902,16 @@ case "$host_os" in ;; *freebsd*) MACH_OS=fb + LIBS="${LIBS} -L/usr/local/lib -liconv -lm -lpthread -lossp-uuid" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; openbsd*) MACH_OS=ob + LIBS="${LIBS} -L/usr/local/lib -liconv -lm -lpthread -lossp-uuid" + LDFLAGS="{$LDFLAGS} -Wl,-zwxneeded" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; bitrig*) ;; @@ -3912,6 +3919,9 @@ case "$host_os" in ;; netbsd*) MACH_OS=nb + LIBS="${LIBS} /usr/lib/i18n/libiconv_std.a -lm -lpthread" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; irix*) ;; diff --git a/racket/src/cs/c/configure.ac b/racket/src/cs/c/configure.ac index 0147ca57ad..7773c2a1ab 100644 --- a/racket/src/cs/c/configure.ac +++ b/racket/src/cs/c/configure.ac @@ -183,9 +183,16 @@ case "$host_os" in ;; *freebsd*) MACH_OS=fb + LIBS="${LIBS} -L/usr/local/lib -liconv -lm -lpthread -lossp-uuid" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; openbsd*) MACH_OS=ob + LIBS="${LIBS} -L/usr/local/lib -liconv -lm -lpthread -lossp-uuid" + LDFLAGS="{$LDFLAGS} -Wl,-zwxneeded" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; bitrig*) ;; @@ -193,6 +200,9 @@ case "$host_os" in ;; netbsd*) MACH_OS=nb + LIBS="${LIBS} /usr/lib/i18n/libiconv_std.a -lm -lpthread" + # Can't strip until ELF lookup added to startup + enable_strip=no ;; irix*) ;;