diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | Makefile.in | 13 | ||||
-rw-r--r-- | configure.in | 15 |
3 files changed, 19 insertions, 10 deletions
@@ -1,6 +1,7 @@ | |||
1 | 20000316 | 1 | 20000316 |
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 | ||
5 | 20000315 | 6 | 20000315 |
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 | |||
19 | ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass | 19 | ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass |
20 | 20 | ||
21 | CC=@CC@ | 21 | CC=@CC@ |
22 | LD=@LD@ | ||
22 | PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" | 23 | PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" |
23 | CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ | 24 | CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ |
24 | LIBS=@LIBS@ | 25 | LIBS=@LIBS@ |
@@ -55,22 +56,22 @@ libssh.a: $(LIBOBJS) | |||
55 | $(RANLIB) $@ | 56 | $(RANLIB) $@ |
56 | 57 | ||
57 | ssh: libssh.a $(SSHOBJS) | 58 | ssh: libssh.a $(SSHOBJS) |
58 | $(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS) | 59 | $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh $(LIBS) |
59 | 60 | ||
60 | sshd: libssh.a $(SSHDOBJS) | 61 | sshd: libssh.a $(SSHDOBJS) |
61 | $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS) | 62 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh $(LIBS) |
62 | 63 | ||
63 | scp: libssh.a scp.o | 64 | scp: libssh.a scp.o |
64 | $(CC) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) | 65 | $(LD) -o $@ scp.o $(LDFLAGS) -lssh $(LIBS) |
65 | 66 | ||
66 | ssh-add: libssh.a ssh-add.o log-client.o | 67 | ssh-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 | ||
69 | ssh-agent: libssh.a ssh-agent.o log-client.o | 70 | ssh-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 | ||
72 | ssh-keygen: libssh.a ssh-keygen.o log-client.o | 73 | ssh-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) | |||
4 | AC_PROG_CC | 4 | AC_PROG_CC |
5 | AC_CANONICAL_HOST | 5 | AC_CANONICAL_HOST |
6 | 6 | ||
7 | # C Compiler features | ||
8 | if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi | ||
9 | AC_C_INLINE | ||
10 | |||
11 | # Checks for programs. | 7 | # Checks for programs. |
12 | AC_PROG_CPP | 8 | AC_PROG_CPP |
13 | AC_PROG_RANLIB | 9 | AC_PROG_RANLIB |
@@ -16,6 +12,17 @@ AC_CHECK_PROG(AR, ar, ar) | |||
16 | AC_PATH_PROG(PERL, perl) | 12 | AC_PATH_PROG(PERL, perl) |
17 | AC_SUBST(PERL) | 13 | AC_SUBST(PERL) |
18 | 14 | ||
15 | if test -z "$LD" ; then | ||
16 | LD=$CC | ||
17 | fi | ||
18 | AC_SUBST(LD) | ||
19 | |||
20 | # C Compiler features | ||
21 | AC_C_INLINE | ||
22 | if test "$GCC" = "yes"; then | ||
23 | CFLAGS="$CFLAGS -Wall" | ||
24 | fi | ||
25 | |||
19 | # Check for some target-specific stuff | 26 | # Check for some target-specific stuff |
20 | case "$host" in | 27 | case "$host" in |
21 | *-*-aix*) | 28 | *-*-aix*) |