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.
This commit is contained in:
Hennadii Stepanov 2021-12-05 00:39:14 +02:00
parent 3b8f4e347b
commit ef81c51f62
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -8,7 +8,7 @@ $(package)_dependencies=libxcb
define $(package)_set_vars
$(package)_config_opts = --disable-shared --disable-devel-docs --without-doxygen
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
$(package)_cflags += -fPIC
$(package)_config_opts += --with-pic
endef
define $(package)_preprocess_cmds