08049e9f52
Fix the following static build failure raised since bump to version 1.15
in commit c31087182f
:
[ 79%] Linking C shared library libdeflate.so
/home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/12.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/12.2.0/crtbeginT.o: relocation R_ARC_32_ME against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
Fixes:
- http://autobuild.buildroot.org/results/25489e5c6f0da642136e099ab35b091624f53a2b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
30 lines
878 B
Makefile
30 lines
878 B
Makefile
################################################################################
|
|
#
|
|
# libdeflate
|
|
#
|
|
################################################################################
|
|
|
|
LIBDEFLATE_VERSION = 1.15
|
|
LIBDEFLATE_SITE = $(call github,ebiggers,libdeflate,v$(LIBDEFLATE_VERSION))
|
|
LIBDEFLATE_LICENSE = MIT
|
|
LIBDEFLATE_LICENSE_FILES = COPYING
|
|
LIBDEFLATE_INSTALL_STAGING = YES
|
|
LIBDEFLATE_CONF_OPTS = \
|
|
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -D_DEFAULT_SOURCE"
|
|
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
LIBDEFLATE_CONF_OPTS += \
|
|
-DLIBDEFLATE_BUILD_SHARED_LIB=ON \
|
|
-DLIBDEFLATE_BUILD_STATIC_LIB=OFF
|
|
else ifeq ($(BR2_STATIC_LIBS),y)
|
|
LIBDEFLATE_CONF_OPTS += \
|
|
-DLIBDEFLATE_BUILD_SHARED_LIB=OFF \
|
|
-DLIBDEFLATE_BUILD_STATIC_LIB=ON
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
LIBDEFLATE_CONF_OPTS += \
|
|
-DLIBDEFLATE_BUILD_SHARED_LIB=ON \
|
|
-DLIBDEFLATE_BUILD_STATIC_LIB=ON
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|