Skip to content

Commit

Permalink
Add dynamic lookup for macOS compilations
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Aug 8, 2024
1 parent f806187 commit 42f6fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spork/cc.janet
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@
(def dflt (index-of (target-os) [:linux]))
(dyn *smart-libs* dflt))
(defn- libs []
(def dl (if (= (target-os) :macos) ["-undefined" "dynamic_lookup"] []))
(def sg (if (smart-libs) ["-Wl,--start-group"] []))
(def eg (if (smart-libs) ["-Wl,--end-group"] []))
(def bs (if (not= (target-os) :macos) ["-Wl,-Bstatic"] []))
(def bd (if (not= (target-os) :macos) ["-Wl,-Bdynamic"] []))
[;(lflags)
;dl
;sg
;(default-libs)
;bs
Expand Down

0 comments on commit 42f6fdd

Please sign in to comment.