diff options
author | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2019-02-10 12:12:09 -0200 |
---|---|---|
committer | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2019-03-15 12:24:55 -0300 |
commit | 49ee39420d01fb871db774cc0f0bb3e55202f6f9 (patch) | |
tree | dfd525f9e024e3b0242e039c144af2b56e6e0fe4 /lang/luasql/Makefile | |
parent | 6c5f68ad14d6c76b00dd082cef671bc9087fb543 (diff) |
luasql: fix variants LDFLAGS
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'lang/luasql/Makefile')
-rw-r--r-- | lang/luasql/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lang/luasql/Makefile b/lang/luasql/Makefile index 3ca72b08b..5355a824a 100644 --- a/lang/luasql/Makefile +++ b/lang/luasql/Makefile @@ -82,21 +82,19 @@ TARGET_CFLAGS += $(FPIC) -std=gnu99 TARGET_CPPFLAGS += -DLUA_USE_LINUX ifeq ($(BUILD_VARIANT),mysql) - TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/mysql - TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz + MAKE_FLAGS += DRIVER_INCS_mysql='-I$(STAGING_DIR)/usr/include/mysql' \ + DRIVER_LIBS_mysql='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz' endif ifeq ($(BUILD_VARIANT),postgres) - TARGET_LDFLAGS += -lpq + MAKE_FLAGS += DRIVER_LIBS_postgres='$(TARGET_LDFLAGS) -lpq' endif ifeq ($(BUILD_VARIANT),sqlite3) - TARGET_LDFLAGS += -lsqlite3 -lpthread + MAKE_FLAGS += DRIVER_LIBS_sqlite='$(TARGET_LDFLAGS) -lsqlite3 -lpthread' endif MAKE_FLAGS += \ - DRIVER_INCS="$(TARGET_CPPFLAGS)" \ - DRIVER_LIBS="$(TARGET_LDFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ $(BUILD_VARIANT) |