summaryrefslogtreecommitdiffstats
path: root/src/libmng.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2010-06-25 22:37:25 (GMT)
committerMark Brand <mabrand@mabrand.nl>2010-06-25 22:37:25 (GMT)
commit9a949cb41f107dc18f24c6be3651b03773055597 (patch)
tree8618f47c1e041856b1b59d6a98a76883281ba608 /src/libmng.mk
parentab12b85a6786017a7df8b209fcb5c14f4a30f823 (diff)
downloadmxe-9a949cb41f107dc18f24c6be3651b03773055597.zip
mxe-9a949cb41f107dc18f24c6be3651b03773055597.tar.gz
mxe-9a949cb41f107dc18f24c6be3651b03773055597.tar.bz2
fixed export of symbols from libmng
When we buld libmng with MNG_BUILD_SO defined, as Qt does, the problem of unresolved symbols when linking goes away. It is now possible to use this "system" libmng with Qt. Tested with Qt examples/widgets/imageviewer.
Diffstat (limited to 'src/libmng.mk')
-rw-r--r--src/libmng.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmng.mk b/src/libmng.mk
index 1db6e4d..945c4cb 100644
--- a/src/libmng.mk
+++ b/src/libmng.mk
@@ -21,7 +21,7 @@ endef
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' \
-f '$(1)'/makefiles/makefile.unix \
- CC=$(TARGET)-gcc
+ CC=$(TARGET)-gcc CFLAGS='-DMNG_BUILD_SO'
$(TARGET)-ranlib '$(1)/libmng.a'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/libmng.a' '$(PREFIX)/$(TARGET)/lib/'