NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
PostgreSQL port - shared libraries

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
winfried



Joined: 06 Jul 2006
Posts: 56
Location: Erlangen/Germany

PostPosted: Wed Jul 26, 2006 2:01 am    Post subject: PostgreSQL port - shared libraries Reply with quote

Hello,

I'm currently trying to port postgresql-7.4.13 to NEXTSTEP 3.3. I got the whole thing compiled and running (but without any tests yet).

I had to disable the "shared libraries" flag, cause I don't know, how to build them on NEXTSTEP. Does anyone know, how I can build a shared lib? On the net, I found infos like "shared libs are not available under NEXTSTEP", but there is /usr/shlib, so they do exist. I'm not very familiar with linking and libraries and the like, so, is there a source I can take a look at?
Back to top
View user's profile Send private message
neozeed



Joined: 15 Apr 2006
Posts: 716
Location: Hong Kong

PostPosted: Wed Jul 26, 2006 6:14 am    Post subject: I know they do exist Reply with quote

but they are built completly different than a 'normal' unix install. If anything look at how OSX does it, since its basically the same thing.

FYI try this (from http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en)

cc -fno-common -c source.c
cc -fno-common -c code.c
cc -dynamiclib -install_name /usr/local/lib/libfoo.2.dylib \
-compatibility_version 2.4 -current_version 2.4.5 \
-o libfoo.2.4.5.dylib source.o code.o
rm -f libfoo.2.dylib libfoo.dylib
ln -s libfoo.2.4.5.dylib libfoo.2.dylib
ln -s libfoo.2.4.5.dylib libfoo.dylib
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group