summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--Makefile.in13
-rw-r--r--configure.in15
3 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index afb44a1b4..7bcd39e4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
120000316 120000316
2 - Fixed configure not passing LDFLAGS to Solaris. Report from David G. 2 - Fixed configure not passing LDFLAGS to Solaris. Report from David G.
3 Hesprich <dghespri@sprintparanet.com> 3 Hesprich <dghespri@sprintparanet.com>
4 - Propogate LD through to Makefile
4 5
520000315 620000315
6 - Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list 7 - Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
diff --git a/Makefile.in b/Makefile.in
index a55af98db..f517144de 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,6 +19,7 @@ ASKPASS_LOCATION=@libexecdir@/ssh
19ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass 19ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
20 20
21CC=@CC@ 21CC=@CC@
22LD=@LD@
22PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" 23PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
23CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ 24CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
24LIBS=@LIBS@ 25LIBS=@LIBS@
@@ -55,22 +56,22 @@ libssh.a: $(LIBOBJS)
55 $(RANLIB) $@ 56 $(RANLIB) $@
56 57
57ssh: libssh.a $(SSHOBJS) 58ssh: libssh.a $(SSHOBJS)
58 $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS) 59 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS)
59 60
60sshd: libssh.a $(SSHDOBJS) 61sshd: libssh.a $(SSHDOBJS)
61 $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS) 62 $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS)
62 63
63scp: libssh.a scp.o 64scp: libssh.a scp.o
64 $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) 65 $(LD) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS)
65 66
66ssh-add: libssh.a ssh-add.o log-client.o 67ssh-add: libssh.a ssh-add.o log-client.o
67 $(CC) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS) 68 $(LD) -o $@ ssh-add.o log-client.o $(LDFLAGS) -lssh $(LIBS)
68 69
69ssh-agent: libssh.a ssh-agent.o log-client.o 70ssh-agent: libssh.a ssh-agent.o log-client.o
70 $(CC) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS) 71 $(LD) -o $@ ssh-agent.o log-client.o $(LDFLAGS) -lssh $(LIBS)
71 72
72ssh-keygen: libssh.a ssh-keygen.o log-client.o 73ssh-keygen: libssh.a ssh-keygen.o log-client.o
73 $(CC) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS) 74 $(LD) -o $@ ssh-keygen.o log-client.o $(LDFLAGS) -lssh $(LIBS)
74 75
75$(MANPAGES) $(CONFIGFILES):: 76$(MANPAGES) $(CONFIGFILES)::
76 $(FIXPATHSCMD) $(srcdir)/$@ 77 $(FIXPATHSCMD) $(srcdir)/$@
diff --git a/configure.in b/configure.in
index 27317bea6..81265f1e8 100644
--- a/configure.in
+++ b/configure.in
@@ -4,10 +4,6 @@ AC_CONFIG_HEADER(config.h)
4AC_PROG_CC 4AC_PROG_CC
5AC_CANONICAL_HOST 5AC_CANONICAL_HOST
6 6
7# C Compiler features
8if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
9AC_C_INLINE
10
11# Checks for programs. 7# Checks for programs.
12AC_PROG_CPP 8AC_PROG_CPP
13AC_PROG_RANLIB 9AC_PROG_RANLIB
@@ -16,6 +12,17 @@ AC_CHECK_PROG(AR, ar, ar)
16AC_PATH_PROG(PERL, perl) 12AC_PATH_PROG(PERL, perl)
17AC_SUBST(PERL) 13AC_SUBST(PERL)
18 14
15if test -z "$LD" ; then
16 LD=$CC
17fi
18AC_SUBST(LD)
19
20# C Compiler features
21AC_C_INLINE
22if test "$GCC" = "yes"; then
23 CFLAGS="$CFLAGS -Wall"
24fi
25
19# Check for some target-specific stuff 26# Check for some target-specific stuff
20case "$host" in 27case "$host" in
21*-*-aix*) 28*-*-aix*)