Skip to content

Commit

Permalink
Merge pull request #458 from Jafaral/macos-x
Browse files Browse the repository at this point in the history
config: keep global symbols on macos for dynamic loading
  • Loading branch information
Don-Ward authored May 6, 2024
2 parents a5c4f6d + bfdde30 commit 1bbaa46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -7045,6 +7045,7 @@ CFUNCTARGET="cfun"
CFDYN="-fPIC $MUSLFLG "
LDDYN="-shared "
SO=so
DASHX=
# OS specific flags go here
case $unicon_host in
*linux*)
Expand All @@ -7063,6 +7064,7 @@ case $unicon_host in
*macos*)
LDDYN="-Xlinker -undefined -Xlinker dynamic_lookup -shared "
RLIBS="-ldl "
DASHX="-x"
;;
*windows*)
EXE=".exe"
Expand Down Expand Up @@ -7106,7 +7108,7 @@ fi
if test x"$debug" = x"yes" ; then
STRIP="@\#strip"
else
STRIP=strip
STRIP="strip $DASHX"
fi


Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ CFUNCTARGET="cfun"
CFDYN="-fPIC $MUSLFLG "
LDDYN="-shared "
SO=so
DASHX=
# OS specific flags go here
case $unicon_host in
*linux*)
Expand All @@ -393,6 +394,7 @@ case $unicon_host in
*macos*)
LDDYN="-Xlinker -undefined -Xlinker dynamic_lookup -shared "
RLIBS="-ldl "
DASHX="-x"
;;
*windows*)
EXE=".exe"
Expand Down Expand Up @@ -436,7 +438,7 @@ fi
if test x"$debug" = x"yes" ; then
STRIP="@\#strip"
else
STRIP=strip
STRIP="strip $DASHX"
fi

AC_SUBST(UNICONX)
Expand Down

0 comments on commit 1bbaa46

Please sign in to comment.