Browse Source

Merge pull request #8417 from cotequeiroz/luasql-flags

luasql: fix variants LDFLAGS
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
6846ed8625
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      lang/luasql/Makefile

+ 4
- 6
lang/luasql/Makefile View File

@ -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)


Loading…
Cancel
Save