Skip to content

Commit 9aa2f6f

Browse files
committed
fix: move OpenSSL compiler flags from config_opts to CFLAGS/CPPFLAGS
OpenSSL Configure rejects mixing positional flags (-fPIC, -D_GNU_SOURCE) with VAR=value args (CFLAGS="..."). Move -fPIC and -D_GNU_SOURCE from config_opts_linux/freebsd to per-package cflags/cppflags variables so they're consolidated into the CFLAGS/CPPFLAGS VAR=value arguments.
1 parent cfa54b5 commit 9aa2f6f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

depends/packages/openssl.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ define $(package)_set_vars
1515
$(package)_config_opts+=no-ssl-trace no-ssl2 no-ssl3 no-tests no-unit-test no-weak-ssl-ciphers
1616
$(package)_config_opts+=no-zlib no-zlib-dynamic no-static-engine no-comp no-afalgeng
1717
$(package)_config_opts+=no-engine no-hw no-asm
18-
$(package)_config_opts_linux=-fPIC -D_GNU_SOURCE
19-
$(package)_config_opts_freebsd=-fPIC
18+
$(package)_cflags_linux=-fPIC
19+
$(package)_cppflags_linux=-D_GNU_SOURCE
20+
$(package)_cflags_freebsd=-fPIC
2021
$(package)_config_opts_x86_64_linux=linux-x86_64
2122
$(package)_config_opts_i686_linux=linux-generic32
2223
$(package)_config_opts_arm_linux=linux-generic32

0 commit comments

Comments
 (0)