mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
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 401162d4a9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
4be8ba1629
commit
ef7cf58714
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user