bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20586: LDFLAGS lost


From: Paul Menzel
Subject: bug#20586: LDFLAGS lost
Date: Fri, 15 May 2015 12:40:49 +0200

(Please CC when replying as I am not subscribed to the list.)

Dear GNU Libtool folks,


I am using Debian Sid/unstable with the package libtool 2.4.2-1.11.

Trying to build PulseAudio (from Git HEAD) with the “fast memory error
detector” AddressSanitizer (ASan). Unfortunately it fails, as the
LDFLAGS get lost in between.

        $ make V=1 CFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer" 
LDFLAGS="-fsanitize=address"
        make  all-recursive
        make[1]: Entering directory '/mnt/pa-upstream'
        Making all in src
        make[2]: Entering directory '/mnt/pa-upstream/src'
        /bin/mkdir -p daemon modules
        make  all-am
        make[3]: Entering directory '/mnt/pa-upstream/src'
        /bin/sh ../libtool  --tag=CC   --mode=link gcc -std=gnu99 -pthread  
-I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include  -O1 -g 
-fsanitize=address -fno-omit-frame-pointer -Wl,-z,nodelete    -module 
-disable-static -avoid-version -Wl,--no-undefined -fsanitize=address -o 
module-console-kit.la -rpath /usr/local/lib/pulse-6.0/modules 
modules/module_console_kit_la-module-console-kit.lo   libpulsecore-6.0.la 
libpulsecommon-6.0.la libpulse.la -ldbus-1  -lcap -lpthread -lrt -ldl -lm 
        libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC  
modules/.libs/module_console_kit_la-module-console-kit.o   -Wl,-rpath 
-Wl,/mnt/pa-upstream/src/.libs -Wl,-rpath -Wl,/usr/local/lib/pulseaudio 
./.libs/libpulsecore-6.0.so ./.libs/libpulsecommon-6.0.so ./.libs/libpulse.so 
-ldbus-1 -lcap -lpthread -lrt -ldl -lm  -pthread -O1 -Wl,-z -Wl,nodelete 
-Wl,--no-undefined   -pthread -Wl,-soname -Wl,module-console-kit.so -o 
.libs/module-console-kit.so
        modules/.libs/module_console_kit_la-module-console-kit.o: In function 
`add_session':
        /mnt/pa-upstream/src/modules/module-console-kit.c:64: undefined 
reference to `__asan_option_detect_stack_use_after_return'
        /mnt/pa-upstream/src/modules/module-console-kit.c:64: undefined 
reference to `__asan_stack_malloc_2'
        /mnt/pa-upstream/src/modules/module-console-kit.c:73: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:83: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:103: undefined 
reference to `__asan_report_store4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:106: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:110: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:110: undefined 
reference to `__asan_report_store4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:113: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:114: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:119: undefined 
reference to `__asan_report_load4'
        /mnt/pa-upstream/src/modules/module-console-kit.c:119: undefined 
reference to `__asan_report_load4'
        modules/.libs/module_console_kit_la-module-console-kit.o: In function 
`filter_cb':
        […]

So as far as I can see, GNU Make passes the flags to Libtool, but then
when GCC is called below, they are lost.

Is that a bug or am I using the build system incorrectly?


Thanks,

Paul


[1] 
http://lists.freedesktop.org/archives/pulseaudio-discuss/2015-May/thread.html#23784
    `LDFLAGS` are not passed down preventing usage of AddressSanitizer (ASan)

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]