package/mupdf: fix building shared libraries
By default mupdf generates static libraries, shared libraries must be enabled explicitely. Also, when building shared libraries, mupdf's Makefile properly passes -fPIC, so adding it manually to MUPDF_CFLAGS is not needed. Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 401162d4a947184654d8202392425a625d000172) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
126b7ffee7
commit
d9c2b374ec
@ -23,8 +23,7 @@ MUPDF_DEPENDENCIES = \
|
|||||||
zlib
|
zlib
|
||||||
|
|
||||||
MUPDF_CFLAGS = \
|
MUPDF_CFLAGS = \
|
||||||
$(TARGET_CFLAGS) \
|
$(TARGET_CFLAGS)
|
||||||
-fPIC # -fPIC is needed because the Makefile doesn't append it.
|
|
||||||
|
|
||||||
MUPDF_LDFLAGS = \
|
MUPDF_LDFLAGS = \
|
||||||
$(TARGET_LDFLAGS)
|
$(TARGET_LDFLAGS)
|
||||||
@ -40,6 +39,12 @@ MUPDF_MAKE_OPTS = \
|
|||||||
HAVE_OBJCOPY=no \
|
HAVE_OBJCOPY=no \
|
||||||
prefix="/usr"
|
prefix="/usr"
|
||||||
|
|
||||||
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
|
MUPDF_MAKE_OPTS += shared=no
|
||||||
|
else
|
||||||
|
MUPDF_MAKE_OPTS += shared=yes
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
|
ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
|
||||||
MUPDF_DEPENDENCIES += libfreeglut
|
MUPDF_DEPENDENCIES += libfreeglut
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user