--- auto/make.orig 2023-10-24 04:42:29 UTC +++ auto/make @@ -85,8 +85,9 @@ do cat << END >> $NJS_MAKEFILE $NJS_BUILD_DIR/$njs_obj: $njs_src - \$(NJS_CC) -c \$(NJS_CFLAGS) $NJS_LIB_AUX_CFLAGS \\ + \$(NJS_CC) -c \$(NJS_CFLAGS) \\ \$(NJS_LIB_INCS) -Injs \\ + $NJS_LIB_AUX_CFLAGS \\ -o $NJS_BUILD_DIR/$njs_obj \\ $njs_dep_flags \\ $njs_src @@ -320,9 +321,7 @@ cat << END >> $NJS_MAKEFILE pc: $NJS_BUILD_DIR/njs.pc $NJS_BUILD_DIR/njs.pc: $NJS_BUILD_DIR/njs_auto_config.h - sed -e "s#@PREFIX@#$(pwd)/$NJS_BUILD_DIR#" \\ - -e "s#@LIBDIR@#$(pwd)/$NJS_BUILD_DIR#" \\ - -e "s#@CFLAGS@#-I$(pwd)/$NJS_BUILD_DIR -I$(pwd)/src#" \\ + sed -e "s#@PREFIX@#%%LOCALBASE%%#" \\ -e "s#@VERSION@#\$(NJS_VER)#" \\ -e "s#@EXTRA_LIBS@#-lm $NJS_LIBS $NJS_LIB_AUX_LIBS#" \\ src/njs.pc.in > \$@