Skip to content

Commit

Permalink
CHG: for macOS we now also need to add -commons use_dylibs
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jul 22, 2024
1 parent 1aa4555 commit eddbc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if [[ ${OS_NAME} == "Darwin" ]]; then
if [[ ${BUILD_TOOL_VER} -ge 15 ]]; then
# Add flag for classic linker only if it has not already been added
if [[ -z $(echo $LDFLAGS | /usr/bin/grep "\-Wl,\-ld_classic") ]]; then
export LDFLAGS="${LDFLAGS} -Wl,-ld_classic"
export LDFLAGS="${LDFLAGS} -Wl,-ld_classic -Wl,-commons,use_dylibs"
fi
else
export LDFLAGS="${LDFLAGS}" # At least set LDFLAGS to null string if it is not already set (used in installation of ISSM and some external packages). Can remove this when issues with new Xcode linker have settled.
Expand Down

0 comments on commit eddbc51

Please sign in to comment.