]> andersk Git - openssh.git/commitdiff
- Propogate LD through to Makefile
authordamien <damien>
Wed, 15 Mar 2000 23:48:25 +0000 (23:48 +0000)
committerdamien <damien>
Wed, 15 Mar 2000 23:48:25 +0000 (23:48 +0000)
ChangeLog
Makefile.in
configure.in

index afb44a1b4a426e193cb4f3595f4fbe38bf568cd3..7bcd39e4ecae6ef6face15ba0bc017a9c4029bd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 20000316
  - Fixed configure not passing LDFLAGS to Solaris. Report from David G. 
    Hesprich <dghespri@sprintparanet.com>
+ - Propogate LD through to Makefile
 
 20000315
  - Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
index a55af98db8c67284664fd0dca1d2e6f7d11094b8..f517144dea120220c1e09f44ce4a17da56dacf7d 100644 (file)
@@ -19,6 +19,7 @@ ASKPASS_LOCATION=@libexecdir@/ssh
 ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
 
 CC=@CC@
+LD=@LD@
 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
 LIBS=@LIBS@
@@ -55,22 +56,22 @@ libssh.a: $(LIBOBJS)
        $(RANLIB) $@
 
 ssh: libssh.a $(SSHOBJS)
-       $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
+       $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
 
 sshd: libssh.a $(SSHDOBJS)
-       $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
+       $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
 
 scp: libssh.a scp.o
-       $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
+       $(LD) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 
 
 ssh-add: libssh.a ssh-add.o log-client.o
-       $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
+       $(LD) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
 
 ssh-agent: libssh.a ssh-agent.o log-client.o
-       $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
+       $(LD) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
 
 ssh-keygen: libssh.a ssh-keygen.o log-client.o
-       $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
+       $(LD) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 
 
 $(MANPAGES) $(CONFIGFILES)::
        $(FIXPATHSCMD) $(srcdir)/$@
index 27317bea62e0be2ab8866ee20294c1053089dc3e..81265f1e82ad09dcac70057d51ab3c7197638cbb 100644 (file)
@@ -4,10 +4,6 @@ AC_CONFIG_HEADER(config.h)
 AC_PROG_CC
 AC_CANONICAL_HOST
 
-# C Compiler features
-if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
-AC_C_INLINE
-
 # Checks for programs.
 AC_PROG_CPP
 AC_PROG_RANLIB
@@ -16,6 +12,17 @@ AC_CHECK_PROG(AR, ar, ar)
 AC_PATH_PROG(PERL, perl)
 AC_SUBST(PERL)
 
+if test -z "$LD" ; then
+       LD=$CC
+fi
+AC_SUBST(LD)
+       
+# C Compiler features
+AC_C_INLINE
+if test "$GCC" = "yes"; then 
+       CFLAGS="$CFLAGS -Wall"
+fi
+
 # Check for some target-specific stuff
 case "$host" in
 *-*-aix*)
This page took 0.060381 seconds and 5 git commands to generate.