Skip to content

Commit

Permalink
Fixed link command line so that test_physfs links with libphysfs.so c…
Browse files Browse the repository at this point in the history
…orrectly.
  • Loading branch information
icculus committed Aug 29, 2001
1 parent 25c65e2 commit 565f12a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Expand Up @@ -156,9 +156,11 @@ TESTLDFLAGS := -lreadline
# Source and target names.
#-----------------------------------------------------------------------------#

BASELIBNAME := physfs
ifneq ($(strip $(cygwin)),true)
BASELIBNAME := lib$(strip $(BASELIBNAME))
PUREBASELIBNAME := physfs
ifeq ($(strip $(cygwin)),true)
BASELIBNAME := $(strip $(PUREBASELIBNAME))
else
BASELIBNAME := lib$(strip $(PUREBASELIBNAME))
endif

MAINLIB := $(BINDIR)/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
Expand Down Expand Up @@ -237,7 +239,7 @@ $(MAINLIB) : $(BINDIR) $(MAINOBJS)
$(LINKER) -o $(MAINLIB) $(LDFLAGS) $(SHAREDFLAGS) $(MAINOBJS)

$(TESTEXE) : $(MAINLIB) $(TESTOBJS)
$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) $(MAINLIB)
$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) -L$(BINDIR) -l$(strip $(PUREBASELIBNAME))


install: all
Expand Down

0 comments on commit 565f12a

Please sign in to comment.