Skip to content

Commit 7d4b59f

Browse files
author
Thomas G. Lockhart
committed
Use the $(LN_S) substitution for "ln -s" since configure tests for it.
1 parent ed24461 commit 7d4b59f

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/interfaces/ecpg/lib/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ all: libecpg.a $(shlib)
4949

5050
$(shlib): ecpglib.sho typename.sho
5151
$(LD) $(LDFLAGS_SL) -o $@ ecpglib.sho typename.sho
52-
ln -sf $@ libecpg.so
52+
$(LN_S) -f $@ libecpg.so
5353

5454
clean:
5555
rm -f *.o *.sho *.a core a.out *~ $(shlib) libecpg.so
@@ -61,7 +61,7 @@ install: libecpg.a $(shlib) $(install-shlib-dep)
6161

6262
install-shlib:
6363
$(INSTALL) $(INSTLOPTS) $(shlib) $(LIBDIR)
64-
ln -sf $(shlib) $(LIBDIR)/libecpg.so
64+
$(LN_S) -f $(shlib) $(LIBDIR)/libecpg.so
6565

6666
uninstall::
6767
rm -f $(LIBDIR)/libecpg.a $(LIBDIR)/$(shlib)

src/interfaces/libpgtcl/Makefile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.21 1998/09/10 04:59:00 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.22 1998/10/07 06:50:26 thomas Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -111,7 +111,7 @@ endif
111111

112112
$(shlib): $(OBJS)
113113
$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(LIBPQ)
114-
ln -sf $@ libpgtcl.so
114+
$(LN_S) -f $@ libpgtcl.so
115115

116116
.PHONY: beforeinstall-headers install-headers
117117
.PHONY: install install-libpgtcl
@@ -130,7 +130,7 @@ install-libpgtcl: libpgtcl.a
130130
install-shlib: $(shlib)
131131
$(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) \
132132
$(LIBDIR)/$(shlib)
133-
ln -sf $(shlib) $(LIBDIR)/libpgtcl.so
133+
$(LN_S) -f $(shlib) $(LIBDIR)/libpgtcl.so
134134

135135
.PHONY: clean
136136
clean:

src/interfaces/libpq++/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.2 1998/09/13 04:00:41 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.3 1998/10/07 06:50:37 thomas Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -145,7 +145,7 @@ install-$(LIBNAME): $(LIBNAME).a beforeinstall-lib
145145
install-shlib: $(SHLIBNAME) beforeinstall-lib
146146
$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(LIBDIR)/$(SHLIB)
147147
rm -f $(LIBDIR)/libpq++.so
148-
ln -sf $(SHLIB) $(LIBDIR)/libpq++.so
148+
$(LN_S) -f $(SHLIB) $(LIBDIR)/libpq++.so
149149

150150

151151
doc:

src/interfaces/libpq/Makefile.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.29 1998/10/06 14:22:12 tgl Exp $
10+
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.30 1998/10/07 06:50:33 thomas Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -116,19 +116,19 @@ endif
116116
# We need to compile this with special options for shared libs,
117117
# so we can't use the object in $(SRCDIR)/backend
118118
dllist.c: $(SRCDIR)/backend/lib/dllist.c
119-
-ln -s $(SRCDIR)/backend/lib/dllist.c .
119+
-$(LN_S) $(SRCDIR)/backend/lib/dllist.c .
120120

121121
ifdef MULTIBYTE
122122
# We need to compile this with special options for shared libs,
123123
# so we can't use the object in $(SRCDIR)/backend
124124
common.c: $(SRCDIR)/backend/utils/mb/common.c
125-
-ln -s $(SRCDIR)/backend/utils/mb/common.c .
125+
-$(LN_S) $(SRCDIR)/backend/utils/mb/common.c .
126126

127127
wchar.c: $(SRCDIR)/backend/utils/mb/wchar.c
128-
-ln -s $(SRCDIR)/backend/utils/mb/wchar.c .
128+
-$(LN_S) $(SRCDIR)/backend/utils/mb/wchar.c .
129129

130130
conv.c: $(SRCDIR)/backend/utils/mb/conv.c
131-
-ln -s $(SRCDIR)/backend/utils/mb/conv.c .
131+
-$(LN_S) $(SRCDIR)/backend/utils/mb/conv.c .
132132
endif
133133

134134
# The following rules cause dependencies in the backend directory to
@@ -141,7 +141,7 @@ $(SRCDIR)/backend/fmgr.h:
141141

142142
$(shlib): $(OBJS)
143143
$(LD) $(LDFLAGS_SL) -o $@ $(OBJS)
144-
ln -sf $@ libpq.so
144+
$(LN_S) -f $@ libpq.so
145145

146146

147147
.PHONY: beforeinstall-headers install-headers
@@ -216,7 +216,7 @@ install-libpq: libpq.a
216216
install-shlib: $(shlib)
217217
$(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) $(LIBDIR)/$(shlib)
218218
rm -f $(LIBDIR)/libpq.so
219-
ln -s $(shlib) $(LIBDIR)/libpq.so
219+
$(LN_S) $(shlib) $(LIBDIR)/libpq.so
220220

221221
depend dep:
222222
$(CC) -MM $(CFLAGS) *.c >depend

0 commit comments

Comments
 (0)