]> granicus.if.org Git - sudo/commitdiff
Link libsudo_noexec.la with LDLDFLAGS for -static-libgcc
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Aug 2011 23:02:16 +0000 (19:02 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Aug 2011 23:02:16 +0000 (19:02 -0400)
src/Makefile.in

index 25b8ea64ed918f092fc1c74a4ee55a34f3bde339..49ed68e874030c46bf92f0ac595d2e061820f9e1 100644 (file)
@@ -44,6 +44,7 @@ CFLAGS = @CFLAGS@
 
 # Flags to pass to the link stage
 LDFLAGS = @LDFLAGS@
+LTLDFLAGS = @LTLDFLAGS@
 
 # Where to install things...
 prefix = @prefix@
@@ -97,7 +98,7 @@ sudo: $(OBJS) $(LT_LIBS)
        $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) -static-libtool-libs
 
 libsudo_noexec.la: sudo_noexec.lo
-       $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
+       $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
 
 sesh: sesh.o
        $(CC) -o $@ sesh.o