5f5c570346
Don't pass TARGET_CONFIGURE_OPTS in LIBSCRYPT_MAKE_OPTS to avoid
overriding CFLAGS (and so loossing -fPIC). This will fix the following
build failure raised since bump to version 1.22 in commit
4542c6714d
:
/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld: BFD (GNU Binutils) 2.36.1 assertion fail elf32-microblaze.c:1534
/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld: sha256.o: probably compiled without -fPIC?
/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld: final link failed: bad value
Fixes:
- http://autobuild.buildroot.org/results/ba4234ad305badb5ce815080ddcad6727e8d51c4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
34 lines
906 B
Makefile
34 lines
906 B
Makefile
################################################################################
|
|
#
|
|
# libscrypt
|
|
#
|
|
################################################################################
|
|
|
|
LIBSCRYPT_VERSION = 1.22
|
|
LIBSCRYPT_SITE = $(call github,technion,libscrypt,v$(LIBSCRYPT_VERSION))
|
|
LIBSCRYPT_LICENSE = BSD-2-Clause
|
|
LIBSCRYPT_LICENSE_FILES = LICENSE
|
|
LIBSCRYPT_INSTALL_STAGING = YES
|
|
|
|
LIBSCRYPT_MAKE_OPTS = \
|
|
CC=$(TARGET_CC) \
|
|
CFLAGS_EXTRA="$(TARGET_CFLAGS)" \
|
|
LDFLAGS_EXTRA="$(TARGET_LDFLAGS)" \
|
|
PREFIX=/usr
|
|
|
|
define LIBSCRYPT_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS)
|
|
endef
|
|
|
|
define LIBSCRYPT_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \
|
|
DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define LIBSCRYPT_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \
|
|
DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|