Skip to content

Commit 2f75348

Browse files
cotequeirozdedeckeh
authored andcommitted
openssl: use --cross-compile-prefix in Configure
This sets the --cross-compile-prefix option when running Configure, so that that it will not use the host gcc to figure out, among other things, compiler defines. It avoids errors, if the host 'gcc' is handled by clang: mips-openwrt-linux-musl-gcc: error: unrecognized command-line option '-Qunused-arguments' Signed-off-by: Eneas U de Queiroz <[email protected]> Tested-by: Rosen Penev <[email protected]>
1 parent 61ef594 commit 2f75348

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package/libs/openssl/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PKG_NAME:=openssl
1111
PKG_BASE:=1.1.1
1212
PKG_BUGFIX:=h
1313
PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
14-
PKG_RELEASE:=1
14+
PKG_RELEASE:=2
1515
PKG_USE_MIPS16:=0
1616
ENGINES_DIR=engines-1.1
1717

@@ -333,6 +333,7 @@ define Build/Configure
333333
--prefix=/usr \
334334
--libdir=lib \
335335
--openssldir=/etc/ssl \
336+
--cross-compile-prefix="$(TARGET_CROSS)" \
336337
$(TARGET_CPPFLAGS) \
337338
$(TARGET_LDFLAGS) \
338339
$(OPENSSL_OPTIONS) && \
@@ -345,14 +346,12 @@ TARGET_LDFLAGS += -Wl,--gc-sections
345346

346347
define Build/Compile
347348
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
348-
CROSS_COMPILE="$(TARGET_CROSS)" \
349349
CC="$(TARGET_CC)" \
350350
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
351351
OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
352352
$(OPENSSL_MAKEFLAGS) \
353353
all
354354
$(MAKE) -C $(PKG_BUILD_DIR) \
355-
CROSS_COMPILE="$(TARGET_CROSS)" \
356355
CC="$(TARGET_CC)" \
357356
DESTDIR="$(PKG_INSTALL_DIR)" \
358357
$(OPENSSL_MAKEFLAGS) \

0 commit comments

Comments
 (0)