Skip to content

Commit ef81c51

Browse files
committed
build: Use config_opts instead of passing a compiler flag directly
This approach is safer as it allows the configure script to check the availability of a compiler flag.
1 parent 3b8f4e3 commit ef81c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/packages/libxcb_util.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $(package)_dependencies=libxcb
88
define $(package)_set_vars
99
$(package)_config_opts = --disable-shared --disable-devel-docs --without-doxygen
1010
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
11-
$(package)_cflags += -fPIC
11+
$(package)_config_opts += --with-pic
1212
endef
1313

1414
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)