Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ ngx_feature_test='struct sigaction act;

if [ $PCRE != NO -a $PCRE != YES ]; then
# force pcre_version symbol to be undefined when PCRE is statically linked

ngx_feature="force undefined symbols (--undefined)"
ngx_feature_libs="-Wl,--undefined=printf"
ngx_feature_name=
Expand All @@ -466,6 +465,21 @@ if [ $PCRE != NO -a $PCRE != YES ]; then
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS -Wl,--undefined=pcre_version"
fi

# for LLVM ld (Darwin)
ngx_feature="force undefined symbols (-all_load -U)"
ngx_feature_libs="-all_load -U printf"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <stdio.h>"
ngx_feature_path=
ngx_feature_test='printf("hello");'

. auto/feature

if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS -all_load -U pcre_version"
fi
fi

#CFLAGS=$"$CFLAGS -DLUA_DEFAULT_PATH='\"/usr/local/openresty/lualib/?.lua\"'"
Expand Down
Loading