coin: fix shared build and use pkg-config for test

This commit is contained in:
Tony Theodore 2015-11-18 18:54:42 +11:00
parent 1118024f45
commit 19c405a579
1 changed files with 9 additions and 10 deletions

View File

@ -30,17 +30,16 @@ define $(PKG)_BUILD
--without-zlib \
--without-bzip2 \
--without-x \
$(if $(BUILD_STATIC), \
--enable-static=yes --enable-shared=no, \
--enable-static=no --enable-shared=yes)
COIN_STATIC=$(if $(BUILD_STATIC),true,false)
# libtool misses some dependency libs and there's no lt_cv* etc. options
$(SED) -i 's,^postdeps="-,postdeps="-lopengl32 -lgdi32 -lwinmm -,g' '$(1)/libtool'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-g++' \
-W -Wall -pedantic '$(2).cpp' \
$(if $(BUILD_STATIC), \
-DCOIN_NOT_DLL, \
-DCOIN_DLL) \
-o '$(PREFIX)/$(TARGET)/bin/test-coin.exe' \
`'$(PREFIX)/$(TARGET)/bin/coin-config' --libs` \
-I`'$(PREFIX)/$(TARGET)/bin/coin-config' --includedir`
-W -Wall -pedantic \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-coin.exe' \
`'$(TARGET)-pkg-config' Coin --cflags --libs`
endef