File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,6 @@ ngx_feature_test='struct sigaction act;
452
452
453
453
if [ $PCRE != NO -a $PCRE != YES ]; then
454
454
# force pcre_version symbol to be undefined when PCRE is statically linked
455
-
456
455
ngx_feature="force undefined symbols (--undefined)"
457
456
ngx_feature_libs="-Wl,--undefined=printf"
458
457
ngx_feature_name=
@@ -466,6 +465,21 @@ if [ $PCRE != NO -a $PCRE != YES ]; then
466
465
if [ $ngx_found = yes ]; then
467
466
CORE_LIBS="$CORE_LIBS -Wl,--undefined=pcre_version"
468
467
fi
468
+
469
+ # for LLVM ld (Darwin)
470
+ ngx_feature="force undefined symbols (-all_load -U)"
471
+ ngx_feature_libs="-all_load -U printf"
472
+ ngx_feature_name=
473
+ ngx_feature_run=no
474
+ ngx_feature_incs="#include <stdio.h>"
475
+ ngx_feature_path=
476
+ ngx_feature_test='printf("hello");'
477
+
478
+ . auto/feature
479
+
480
+ if [ $ngx_found = yes ]; then
481
+ CORE_LIBS="$CORE_LIBS -all_load -U pcre_version"
482
+ fi
469
483
fi
470
484
471
485
#CFLAGS=$"$CFLAGS -DLUA_DEFAULT_PATH='\"/usr/local/openresty/lualib/?.lua\"'"
You can’t perform that action at this time.
0 commit comments