Unix Technical Forum

Re: Dynamic linking on AIX

This is a discussion on Re: Dynamic linking on AIX within the Pgsql Patches forums, part of the PostgreSQL category; --> "Albe Laurenz" <all@adv.magwien.gv.at> writes: > This is a second try; this patch replaces > http://archives.postgresql.org/pgsql...9/msg00185.php Looks good, applied. > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 10:01 AM
Tom Lane
 
Posts: n/a
Default Re: Dynamic linking on AIX

"Albe Laurenz" <all@adv.magwien.gv.at> writes:
> This is a second try; this patch replaces
> http://archives.postgresql.org/pgsql...9/msg00185.php


Looks good, applied.

> The line in src/makefiles/Makefile.aix
> where I set 'libpath' also seems pretty ugly to me.
> It will fail if there is a -L path that contains
> a blank :^(


We were already assuming no spaces in -L switches, see the $filter
manipulations in Makefile.shlib. So I simplified it to

libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/usr/lib:/lib

It's annoying to have to shell out to sed to get rid of the spaces, but
this is gmake's fault for having such a brain-dead function call syntax.
After looking at the gmake manual, it is possible to use $subst to get
rid of spaces, but it's even uglier (and much harder to follow) than
the above ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com