Changeset 947 for trunk/mk/common.mk


Ignore:
Timestamp:
Sep 28, 2006, 4:04:06 PM (16 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.