summaryrefslogtreecommitdiffstats
path: root/src/libidn.mk
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2011-04-27 14:11:54 (GMT)
committerMartin Lambers <marlam@marlam.de>2011-04-27 14:11:54 (GMT)
commite330c85907ad3fe482208382b06d42738aba177c (patch)
tree48db61b556029dc90f7b51847e0f8636a8942070 /src/libidn.mk
parentb74c8a76bebdc8498879eef6dc3d243b8ea0d4b4 (diff)
downloadmxe-e330c85907ad3fe482208382b06d42738aba177c.zip
mxe-e330c85907ad3fe482208382b06d42738aba177c.tar.gz
mxe-e330c85907ad3fe482208382b06d42738aba177c.tar.bz2
package libidn: add "-liconv" to libidn.pc
This is necessary for static linking, as demonstrated by the test program that this patch also adds.
Diffstat (limited to 'src/libidn.mk')
-rw-r--r--src/libidn.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libidn.mk b/src/libidn.mk
index de4fcd3..80f9c5f 100644
--- a/src/libidn.mk
+++ b/src/libidn.mk
@@ -29,4 +29,9 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)/$(TARGET)' \
--with-libiconv-prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+
+ '$(TARGET)-gcc' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libidn.exe' \
+ `'$(TARGET)-pkg-config' libidn --cflags --libs`
endef