From: Arne Fitzenreiter Date: Thu, 1 Jul 2021 06:31:45 +0000 (+0200) Subject: zlib: use correct gcc at toolchain build X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03f64a00ec395c12397ea75a1fafbb3a3383c782;p=people%2Fstevee%2Fipfire-2.x.git zlib: use correct gcc at toolchain build Signed-off-by: Arne Fitzenreiter --- diff --git a/lfs/zlib b/lfs/zlib index d742dad866..2c89b4803b 100644 --- a/lfs/zlib +++ b/lfs/zlib @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2021 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -33,6 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) ifeq "$(TOOLCHAIN)" "1" TARGET = $(DIR_INFO)/$(THISAPP)-tools + CROSS_PREFIX = $(CROSSTARGET)- else TARGET = $(DIR_INFO)/$(THISAPP) endif @@ -76,7 +77,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=$(PREFIX) --shared + cd $(DIR_APP) && CROSS_PREFIX=$(CROSS_PREFIX) ./configure --prefix=$(PREFIX) --shared cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install