Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-07-03 Thread Tom Lane
Peter Eisentraut writes: > On sön, 2010-06-27 at 19:41 -0400, Tom Lane wrote: >> OK, so after some digging I find that, while most of the .so's in our >> build are made using Makefile.shlib, pgxs's "MODULES" build rules >> don't >> use that. Instead they rely on the "%.so: %.o" (and platform-spe

Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-28 Thread Mark Cave-Ayland
Tom Lane wrote: Should we try to make that a bit more consistent, and if so how? The shenanigans in Makefile.shlib would get a lot simpler if we said that shlib links always include LDFLAGS *plus* LDFLAGS_SL, but I would think that that would carry substantial risk of breakage. Surely there are

Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-27 Thread Peter Eisentraut
On sön, 2010-06-27 at 19:41 -0400, Tom Lane wrote: > OK, so after some digging I find that, while most of the .so's in our > build are made using Makefile.shlib, pgxs's "MODULES" build rules > don't > use that. Instead they rely on the "%.so: %.o" (and platform-specific > variants of that) rules f

Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-27 Thread Tom Lane
"Aaron W. Swenson" writes: > LDFLAGS and LDFLAGS_SL are exported as environment variables that ./configure > does pick up, and pg_config confirms this. (pg_config also reveals that '--as- > needed' is tacked onto LDFLAGS, which isn't a problem.) OK, so after some digging I find that, while most

Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-27 Thread Aaron W. Swenson
On Sunday 27 June 2010 10:26:48 you wrote: > "Aaron W. Swenson" writes: > > I have a short list of modules that have been built without respecting my > > LDFLAGS and/or LDFLAGS_SL. > > It's difficult to comment on this since you haven't told us what flags > you wanted to inject, nor exactly how y

Re: [HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-27 Thread Tom Lane
"Aaron W. Swenson" writes: > I have a short list of modules that have been built without respecting my > LDFLAGS and/or LDFLAGS_SL. It's difficult to comment on this since you haven't told us what flags you wanted to inject, nor exactly how you tried to inject them, nor what version of PG you're

[HACKERS] Why are these modules built without respecting my LDFLAGS?

2010-06-27 Thread Aaron W. Swenson
I have a short list of modules that have been built without respecting my LDFLAGS and/or LDFLAGS_SL. They are as follows: autoinc.so citext.so earthdistance.so insert_username.so isn.so lo.so moddatetime.so refint.so tablefunc.so timetravel.so tsearch2.so I have looked arou