File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 199
199
(def sp (dyn *syspath* " ." ))
200
200
(def ip (include-path ))
201
201
[(string " -I" sp )
202
- ;(if (dyn :verbose ) [" -v" ] [])
202
+ # ;(if (dyn :verbose) ["-v"] []) # err, too verbose
203
203
;(if (and ip (not= ip sp )) [(string " -I" ip )] [])])
204
204
(defn- extra-link-paths []
205
205
(def sp (dyn *syspath* " ." ))
Original file line number Diff line number Diff line change @@ -789,6 +789,14 @@ int main(int argc, const char **argv) {
789
789
(array/push other-cflags (string " -I" headerpath ))
790
790
(array/push dep-libs libjanet )))
791
791
792
+ # Static compilation will not work out of the box on mac, so disable with warning.
793
+ (def static
794
+ (if (and (= (os/which ) :macos ) static )
795
+ (do
796
+ (eprint " Warning! fully static executable disabled on macos." )
797
+ false )
798
+ static ))
799
+
792
800
(def benv @{cc/*build-dir* bd
793
801
cc/*defines* defines
794
802
cc/*libs* libs
@@ -821,8 +829,7 @@ int main(int argc, const char **argv) {
821
829
(if has-cpp cc/link-executable-c ++ cc/link-executable-c )))
822
830
(unless no-compile
823
831
(with-env benv
824
- (unless static
825
- (cc/search-libraries " m" " rt" " dl" ))
832
+ (cc/search-libraries " m" " rt" " dl" )
826
833
(flush )
827
834
(compile-c cimage-dest oimage-dest )
828
835
(flush )
You can’t perform that action at this time.
0 commit comments