diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2015-05-15 00:47:23 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-05-15 00:52:10 +0200 |
commit | 9e67d499f14efd24dd3179ddc40f15aadb4d200a (patch) | |
tree | ee20bd05f145633cbc57b4b1f338ffd7f80c9762 | |
parent | a3038d061e541aef0bc449149bf72c6f458d6942 (diff) | |
download | buildroot-9e67d499f14efd24dd3179ddc40f15aadb4d200a.tar.gz buildroot-9e67d499f14efd24dd3179ddc40f15aadb4d200a.zip |
mongoose: fix static build issue
Fixes:
http://autobuild.buildroot.net/results/372/372515ba0a09a23237ae34024658f21c2625d6e7/
Disable the shared library support in mongoose, as the only thing it does is
including dlfcn.h - So it is useless. Also remove the unneeded -ldl from
the web server linker flags.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/mongoose/mongoose.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk index e31b099a93..6797e58857 100644 --- a/package/mongoose/mongoose.mk +++ b/package/mongoose/mongoose.mk @@ -10,7 +10,7 @@ MONGOOSE_LICENSE = GPLv2 MONGOOSE_LICENSE_FILES = LICENSE MONGOOSE_INSTALL_STAGING = YES -MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) +MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -DMONGOOSE_NO_DL ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGOOSE_DEPENDENCIES += openssl @@ -21,7 +21,7 @@ endif define MONGOOSE_BUILD_CMDS $(TARGET_CC) $(@D)/examples/web_server/web_server.c $(@D)/mongoose.c \ -I$(@D) -o $(@D)/examples/web_server/web_server \ - $(MONGOOSE_CFLAGS) -pthread -ldl + $(MONGOOSE_CFLAGS) -pthread $(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o $(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o endef |