Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 5607] New: configure ignores (partially) LDFLAGS

Date: Sat, 22 Jan 2011 18:37:22 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5607

           Summary: configure ignores (partially) LDFLAGS
           Product: Wireshark
           Version: 1.4.3
          Platform: SPARC
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: irwin@xxxxxxxxxxxxx


Created an attachment (id=5770)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5770)
config.log

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
The LDFLAGS passed to configure are not inserted into the LDFLAGS in Makefile.

config.log shows that it saw the LDFLAGS, and even used them during its
configure-time tests.  But it shows that it didn't include them in the
generated LDFLAGS.  

% ./configure LDFLAGS="-R/usr/openwin/sfw/lib"
...


[% grep LDFLAGS config.log
  $ ./configure LDFLAGS=-R/usr/openwin/sfw/lib
configure:18017: checking whether we can add -Wl,--as-needed to LDFLAGS
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-R/usr/openwin/sfw/lib
LDFLAGS='-g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels
-Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib
-L/usr/local/lib -R/usr/local/lib'
LDFLAGS_SHAREDLIB=''
LIBSMI_LDFLAGS=''



% grep LDFLAGS Makefile
        $(AM_LDFLAGS) $(LDFLAGS) -o $@
LDFLAGS = -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels
-Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib
-L/usr/local/lib -R/usr/local/lib
LDFLAGS_SHAREDLIB = 
LIBSMI_LDFLAGS = 
wireshark_LDFLAGS = -export-dynamic
#wireshark_LDFLAGS = -Wl,-static -all-static
tshark_LDFLAGS = -export-dynamic
#tshark_LDFLAGS = -Wl,-static -all-static
rawshark_LDFLAGS = -export-dynamic
#rawshark_LDFLAGS = -Wl,-static -all-static
        $(LINK) $(capinfos_LDFLAGS) $(capinfos_OBJECTS) $(capinfos_LDADD)
$(LIBS)
        $(LINK) $(dftest_LDFLAGS) $(dftest_OBJECTS) $(dftest_LDADD) $(LIBS)
        $(LINK) $(dumpcap_LDFLAGS) $(dumpcap_OBJECTS) $(dumpcap_LDADD) $(LIBS)
        $(LINK) $(editcap_LDFLAGS) $(editcap_OBJECTS) $(editcap_LDADD) $(LIBS)
        $(LINK) $(mergecap_LDFLAGS) $(mergecap_OBJECTS) $(mergecap_LDADD)
$(LIBS)
        $(LINK) $(randpkt_LDFLAGS) $(randpkt_OBJECTS) $(randpkt_LDADD) $(LIBS)
        $(LINK) $(rawshark_LDFLAGS) $(rawshark_OBJECTS) $(rawshark_LDADD)
$(LIBS)
        $(LINK) $(text2pcap_LDFLAGS) $(text2pcap_OBJECTS) $(text2pcap_LDADD)
$(LIBS)
        $(LINK) $(tshark_LDFLAGS) $(tshark_OBJECTS) $(tshark_LDADD) $(LIBS)
        $(LINK) $(wireshark_LDFLAGS) $(wireshark_OBJECTS) $(wireshark_LDADD)
$(LIBS)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.