summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libbluray.mk19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/libbluray.mk b/src/libbluray.mk
index d5fdf52..bc8c572 100644
--- a/src/libbluray.mk
+++ b/src/libbluray.mk
@@ -18,21 +18,16 @@ endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --build="`config.guess`" \
- --prefix='$(PREFIX)/$(TARGET)' \
- --disable-shared \
+ $(MXE_CONFIGURE_OPTS) \
--disable-examples \
--with-freetype \
--with-libxml2 \
--disable-bdjava
- $(MAKE) -C '$(1)' -j '$(JOBS)'
-
- # Since libbluray doesn't export its symbols, we can't create a shared
- # build on Windows. So we mangle the pkg-config to fool ffmpegs detection
- # to work... In a static build, this fixes transitive dependencies of xml2
- # and freetype...
- $(SED) -i '/Libs:/ s,$$, -lxml2 -lfreetype,; s,^Libs.private:.*$$,Requires.private: libxml-2.0 freetype2,' '$(1)/src/libbluray.pc'
-
+ $(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS='-no-undefined'
$(MAKE) -C '$(1)' -j 1 install
+
+ '$(TARGET)-gcc' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(1)/src/examples/sound_dump.c' -o '$(PREFIX)/$(TARGET)/bin/test-libbluray.exe' \
+ `'$(TARGET)-pkg-config' libbluray --cflags --libs`
endef