summaryrefslogtreecommitdiffstats
path: root/src/gsl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsl.mk')
-rw-r--r--src/gsl.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gsl.mk b/src/gsl.mk
index 979c42f..ad43926 100644
--- a/src/gsl.mk
+++ b/src/gsl.mk
@@ -20,6 +20,8 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ # wine confuses the cross-compiling detection, so set it explicitly
+ $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
@@ -27,4 +29,9 @@ define $(PKG)_BUILD
--enable-static
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
+
+ '$(TARGET)-gcc' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gsl.exe' \
+ -lgsl
endef