Bläddra i källkod

Small linker changes
Author: jgg
Date: 1999-01-17 21:11:40 GMT
Small linker changes

Arch Librarian 22 år sedan
förälder
incheckning
a9975068c7
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      buildlib/environment.mak.in
  2. 1 1
      buildlib/program.mak

+ 1 - 0
buildlib/environment.mak.in

@@ -10,6 +10,7 @@ CXXFLAGS+= @CXXFLAGS@ @X_CFLAGS@
 # Linker stuff
 # Linker stuff
 PICFLAGS+= -fPIC -DPIC
 PICFLAGS+= -fPIC -DPIC
 LFLAGS+= @LDFLAGS@
 LFLAGS+= @LDFLAGS@
+LEFLAGS+= 
 XLIBS:=@X_LIBS@ @X_PRE_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
 XLIBS:=@X_LIBS@ @X_PRE_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
 
 
 # Dep generation - this only works for gnu stuff
 # Dep generation - this only works for gnu stuff

+ 1 - 1
buildlib/program.mak

@@ -31,7 +31,7 @@ veryclean/$(LOCAL): clean/$(LOCAL)
 # The binary build rule
 # The binary build rule
 $($(LOCAL)-BIN): $($(LOCAL)-OBJS)
 $($(LOCAL)-BIN): $($(LOCAL)-OBJS)
 	echo Building program $@
 	echo Building program $@
-	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $(filter %.o,$^) $($(LOCAL)-SLIBS)
+	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $(filter %.o,$^) $($(@F)-SLIBS) $(LEFLAGS)
 
 
 # Compilation rules
 # Compilation rules
 vpath %.cc $(SUBDIRS)
 vpath %.cc $(SUBDIRS)