From: | "Jonas Lund" <whizzter(at)gmail(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #5351: compiling with --disable-shared is broken (patch included) |
Date: | 2010-02-28 22:41:34 |
Message-ID: | 201002282241.o1SMfYDv051128@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 5351
Logged by: Jonas Lund
Email address: whizzter(at)gmail(dot)com
PostgreSQL version: 8.4.2 (+others)
Operating system: FreeBSD (generic problem)
Description: compiling with --disable-shared is broken (patch
included)
Details:
I'm compiling with "--disable-shared" on 8.4.2 (worked with 8.3.1) and it
fails with:
gmake[3]: *** No rule to make target `libpq.so.5', needed by
`all-shared-lib'.
When examining Makefile.shlib i noticed that an ifeq clause had been
narrowed down in the file between 8.3.1 and 8.4.2 and now missed a bunch of
"secondary clauses" declaring the "shlib" variable and thus activating the:
all-shared-lib: $(shlib)
makefile rule EVEN IF --disable-shared is enabled and thus not making the
libfile.
This following patch disables those clauses:
------------------------------------------------------
--- Makefile.shlib.orig 2010-02-28 23:15:15.877364960 +0100
+++ Makefile.shlib 2010-02-28 23:08:28.631839830 +0100
@@ -120,6 +120,8 @@
override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION)
endif
+ifeq ($(enable_shared), yes)
+
ifeq ($(PORTNAME), aix)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
@@ -332,6 +334,8 @@
endif
+endif
+
##
## BUILD
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-03-01 02:39:28 | Re: BUG #5351: compiling with --disable-shared is broken (patch included) |
Previous Message | Tom Lane | 2010-02-28 19:33:09 | Re: possible bug not in open items |