Changeset 947


Ignore:
Timestamp:
Sep 28, 2006, 4:04:06 PM (15 years ago)
Author:
titer
Message:

List libT.a before the -l* flags on the command line (otherwise this can cause problems with LDFLAGS=-Wl,--as-needed)

Patch by Daniel T. Lin

Location:
trunk/mk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/mk/beos.mk

    r265 r947  
    99
    1010CXXFLAGS += -I../libtransmission
    11 LDFLAGS  += ../libtransmission/libtransmission.a
     11LDLIBS   += ../libtransmission/libtransmission.a
    1212CXXFLAGS += -IlibPrefs
    13 LDFLAGS  += -lbe -ltracker libPrefs/libPrefs.a
     13LDFLAGS  += -lbe -ltracker
     14LDLIBS   += libPrefs/libPrefs.a
    1415
    1516Transmission: $(OBJS) Transmission.rsrc
    16         $(CXX) -o $@ $(OBJS) $(LDFLAGS)
     17        $(CXX) -o $@ $(OBJS) $(LDLIBS) $(LDFLAGS)
    1718        xres -o Transmission Transmission.rsrc
    1819        mimeset -f Transmission
  • trunk/mk/cli.mk

    r265 r947  
    88
    99CFLAGS  += -I../libtransmission
    10 LDFLAGS += ../libtransmission/libtransmission.a
     10LDLIBS += ../libtransmission/libtransmission.a
    1111
    1212transmissioncli: $(OBJS) ../libtransmission/libtransmission.a
  • trunk/mk/common.mk

    r920 r947  
    5353define LINK_RULE
    5454        @echo "Link $@"
    55         @CMD="$(CC) -o $@ $(OBJS) $(LDFLAGS)"; $$CMD || \
     55        @CMD="$(CC) -o $@ $(OBJS) $(LDLIBS) $(LDFLAGS)"; $$CMD || \
    5656          ( echo "Compile line for $@ was:"; echo $$CMD; false )
    5757endef
  • trunk/mk/gtk.mk

    r804 r947  
    99
    1010CFLAGS  += $(CFLAGS_GTK) -I../libtransmission
    11 LDFLAGS += $(LDFLAGS_GTK) ../libtransmission/libtransmission.a
     11LDFLAGS += $(LDFLAGS_GTK)
     12LDLIBS  += ../libtransmission/libtransmission.a
    1213
    1314all: transmission-gtk .po
Note: See TracChangeset for help on using the changeset viewer.