MacOS linker does not support -Wl,-E as it exports binary
symbols by default.
This fixes #1015 on Github.
esac
+njs_feature="-Wl,-E"
+njs_feature_name=
+njs_feature_run=value
+njs_feature_path=
+njs_feature_incs=
+njs_feature_libs=-Wl,-E
+njs_feature_test="int main(void) { return 0; }"
+
+. auto/feature
+
+if [ $njs_found = yes ]; then
+ NJS_LINK="$NJS_LINK -Wl,-E"
+fi
+
if [ "$NJS_DEBUG" = "YES" ]; then
njs_define=NJS_DEBUG . auto/define
fi
NJS_CC_OPT=
NJS_LD_OPT=
-NJS_LINK="-Wl,-E"
+NJS_LINK=
NJS_PIC=-fPIC
NJS_DEBUG=NO