gvvaughan / luke

A light-weight, self-bootstrapping software build utility.
MIT License
20 stars 3 forks source link

Howto define LDFLAGS? #3

Closed winterheart closed 4 years ago

winterheart commented 4 years ago

Hello.

I need to define custom LDFLAGS option, but seems luke don't use it:

./build-aux/luke LDFLAGS="-Wl,--defsym=__gentoo_check_ldflags__=0" CC=clang --verbose
checking for ldoc... no
checking for true... yes
checking whether clang works... yes
checking for library containing yaml_document_initialize... -lyaml
creating build-aux/config.ld
clang -O2 -shared -fPIC   -D_FORTIFY_SOURCE=2 -DNDEBUG -DPACKAGE='"lyaml"' -DVERSION='"winterheart"' -Iext/include -I/usr/include/lua5.1 -I/usr/include ext/yaml/yaml.c ext/yaml/emitter.c ext/yaml/parser.c ext/yaml/scanner.c -o linux/yaml.so -L/usr/lib  -lyaml
true -c build-aux/config.ld .

Other *FLAGS like CFLAGS and CPPFLAGS works fine. So how I can redefine LDFLAGS?

gvvaughan commented 4 years ago

Quite right... seems like luke is losing track of LDFLAGS for some reason. I'll work on a fix, thanks for the report!