Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e57975

Browse files
committed
Clean up rpath handling for HPUX --- we can't use the cc-style rpath
switch syntax when calling ld directly.
1 parent466fb06 commit8e57975

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

‎src/Makefile.shlib

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.88 2004/11/17 17:08:15 tgl Exp $
9+
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.89 2004/11/19 21:27:42 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -154,9 +154,15 @@ ifeq ($(PORTNAME), hpux)
154154
SHLIB_LINK+= `$(CC) $(LDFLAGS) -print-libgcc-file-name`
155155
endif
156156
ifeq ($(with_gnu_ld), yes)
157-
LINK.shared= $(CC) $(LDFLAGS) -shared -Wl,-h -Wl,$(soname) -Wl,+b -Wl,$(libdir)
157+
LINK.shared= $(CC) $(LDFLAGS) -shared -Wl,-h -Wl,$(soname)
158158
else
159-
LINK.shared= $(LD) +h $(soname) -b +b $(libdir)
159+
# can't use the CC-syntax rpath pattern here
160+
rpath =
161+
ifeq ($(enable_rpath), yes)
162+
LINK.shared= $(LD) +h $(soname) -b +b $(rpathdir)
163+
else
164+
LINK.shared= $(LD) +h $(soname) -b
165+
endif
160166
endif
161167
endif
162168

‎src/makefiles/Makefile.hpux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ LIBS := -lxnet $(LIBS)
1919
# Set up rpath so that the executables don't need SHLIB_PATH to be set.
2020
# (Note: --disable-rpath is a really bad idea on this platform...)
2121
ifeq ($(with_gnu_ld), yes)
22-
rpath = -Wl,-rpath,$(rpathdir)
22+
rpath = -Wl,-rpath -Wl,$(rpathdir)
2323
else
24-
rpath = -Wl,+b,$(rpathdir)
24+
rpath = -Wl,+b -Wl,$(rpathdir)
2525
endif
2626

2727
# catch null pointer dereferences

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp