--- a/configure Sat Jan 22 11:06:11 2022 +0100 +++ b/configure Sat Jan 22 19:13:40 2022 +0100 @@ -251,6 +251,11 @@ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`" LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`" CFLAGS="$CFLAGS -DENABLE_POSTGRESQL" + cat >> $TEMP_DIR/make.mk << __EOF__ +# Dependency: libpq +PLUGINS += postgresql + +__EOF__ echo yes return 0 done @@ -464,6 +469,26 @@ fi # Features + + +echo >> $TEMP_DIR/config.mk +if [ ! -z "${CFLAGS}" ]; then + echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk +fi +if [ ! -z "${CXXFLAGS}" ]; then + echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk +fi +if [ ! -z "${LDFLAGS}" ]; then + echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk +fi + +# Target: postgresql +CFLAGS= +LDFLAGS= +CXXFLAGS= + + +# Features if [ ! -z "$FEATURE_POSTGRESQL" ]; then # check dependency dependency_libpq @@ -479,13 +504,13 @@ echo >> $TEMP_DIR/config.mk if [ ! -z "${CFLAGS}" ]; then - echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk + echo "POSTGRESQL_CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk fi if [ ! -z "${CXXFLAGS}" ]; then - echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk + echo "POSTGRESQL_CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk fi if [ ! -z "${LDFLAGS}" ]; then - echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk + echo "POSTGRESQL_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk fi if [ $ERROR -ne 0 ]; then