mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
build only static djvulibre and fix cross-compile #26
This commit is contained in:
11
Makefile
11
Makefile
@@ -141,16 +141,11 @@ $(MUPDFLIBS) $(THIRDPARTYLIBS): $(MUPDFDIR)/cmapdump.host $(MUPDFDIR)/fontdump.h
|
||||
$(DJVULIBS):
|
||||
-mkdir $(DJVUDIR)/build
|
||||
ifdef EMULATE_READER
|
||||
cd $(DJVUDIR)/build && ../configure --enable-desktopfiles=no
|
||||
cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static
|
||||
else
|
||||
cd $(DJVUDIR)/build && ../configure --enable-desktopfiles=no --host=arm
|
||||
endif
|
||||
make -C $(DJVUDIR)/build CXX="$(CXX)"
|
||||
ifdef EMULATE_READER
|
||||
cd $(DJVUDIR)/build/libdjvu/.libs && ar -cvq libdjvulibre.a *.o
|
||||
else
|
||||
cd $(DJVUDIR)/build/libdjvu/ && ar -cvq libdjvulibre.a *.o
|
||||
cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static --host=arm-kindle-linux-gnueabi
|
||||
endif
|
||||
make -C $(DJVUDIR)/build
|
||||
|
||||
$(LUALIB):
|
||||
make -C lua/src CC="$(CC)" CFLAGS="$(CFLAGS)" MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E" liblua.a
|
||||
|
||||
Reference in New Issue
Block a user