File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 592
592
593
593
if [ $PCRE != NO -a $PCRE != YES ]; then
594
594
# force pcre_version symbol to be undefined when PCRE is statically linked
595
-
596
595
ngx_feature="force undefined symbols (--undefined)"
597
596
ngx_feature_libs="-Wl,--undefined=printf"
598
597
ngx_feature_name=
@@ -606,6 +605,21 @@ if [ $PCRE != NO -a $PCRE != YES ]; then
606
605
if [ $ngx_found = yes ]; then
607
606
CORE_LIBS="$CORE_LIBS -Wl,--undefined=pcre_version"
608
607
fi
608
+
609
+ # for LLVM ld (Darwin)
610
+ ngx_feature="force undefined symbols (-all_load -U)"
611
+ ngx_feature_libs="-all_load -U printf"
612
+ ngx_feature_name=
613
+ ngx_feature_run=no
614
+ ngx_feature_incs="#include <stdio.h>"
615
+ ngx_feature_path=
616
+ ngx_feature_test='printf("hello");'
617
+
618
+ . auto/feature
619
+
620
+ if [ $ngx_found = yes ]; then
621
+ CORE_LIBS="$CORE_LIBS -all_load -U pcre_version"
622
+ fi
609
623
fi
610
624
611
625
# ----------------------------------------
You can’t perform that action at this time.
0 commit comments