]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
libxcrypt: fix toolchain build
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 15 Jun 2021 17:42:04 +0000 (17:42 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:38 +0000 (07:42 +0200)
was built with gcc from host instead of gcc pass1.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/libxcrypt

index 79edc5fb6fd5167b7d4e7c542b39ba2cdc0283e7..3cc2daa042d19270e82f2c7d73764b33cf93cb63 100644 (file)
@@ -33,6 +33,8 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 ifeq "$(TOOLCHAIN)" "1"
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
+  EXTRACONFIG = --host=$(CROSSTARGET) \
+               --target=$(CROSSTARGET)
 else
   TARGET = $(DIR_INFO)/$(THISAPP)
 endif
@@ -78,6 +80,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && autoreconf -vfi
        cd $(DIR_APP) && \
                ./configure \
+                       $(EXTRACONFIG) \
                        --prefix=$(PREFIX) \
                        --disable-static \
                        --enable-hashes=strong,glibc \