Library linking

Hi

I’m trying to create an SDL package to work in Midori linux (.mlz) which has
it’s own GLIBC version bintools etc. I have used config options to ensure
that most libraries etc are referenced from within the build directory
structure and not my development system. This has worked well so far but…
When linking the shared libraries SDL references my development libs…see
below:

/bin/sh …/libtool --mode=link i686-ml-linux-gcc -Os -Wall
-DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DOSS_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc
-I/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/include -DENABLE_X11
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE
-DXFREE86_XV -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -D_REENTRANT
-DSDL_USE_PTHREADS -I…/include -I…/include/SDL -I…/src -I…/src/linux
-I…/src/main -I…/src/audio -I…/src/video -I…/src/events -I…/src/joystick
-I…/src/cdrom -I…/src/thread -I…/src/timer -I…/src/endian -I…/src/file
-s -o libSDL.la -rpath
/home/paul/midori-1.0.0-beta3/cache/tools/usr/local/lib -release 1.2
-version-info 0:2:0 SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo
main/libarch.la
audio/libaudio.la video/libvideo.la events/libevents.la
joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la---------------------------------------------------------------------------------------
timer/libtimer.la endian/libendian.la file/libfile.la -lm
-L/usr/lib -ldl -lartsc -DPIC -fPIC -lpthread
-L/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/lib -lX11 -lXext
-lXxf86vm -lXxf86dga -lXv -ldl
rm -fr .libs/libSDL.la .libs/libSDL.* .libs/libSDL-1.2.*


The direct reference is -L/usr/lib -ldl -lartsc -lm etc… How do I change
the configure.in or other files to reference my build directories?

All other references such as x libs, x includes etc can be changed with an
option, can the above be changed aswell?

Any help would be greatly appreciated…I’m just a newbie so I’m probably
doing something stupid :wink:

Thanks

Paul

Hi Paul!

I’m currently assembling a small Midori based OS called ParaOS
(SDL, ParaGUI).

For this I created a set of SDL mlz packages I could provide if you are
interested. (But you would have to wait till Monday when I’m back in the
office).

AlexOn Thu, 2001-11-01 at 13:24, Paul wrote:

Hi

I’m trying to create an SDL package to work in Midori linux (.mlz) which has
it’s own GLIBC version bintools etc. I have used config options to ensure
that most libraries etc are referenced from within the build directory
structure and not my development system. This has worked well so far but…
When linking the shared libraries SDL references my development libs…see
below:

/bin/sh …/libtool --mode=link i686-ml-linux-gcc -Os -Wall
-DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DOSS_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc
-I/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/include -DENABLE_X11
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE
-DXFREE86_XV -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -D_REENTRANT
-DSDL_USE_PTHREADS -I…/include -I…/include/SDL -I…/src -I…/src/linux
-I…/src/main -I…/src/audio -I…/src/video -I…/src/events -I…/src/joystick
-I…/src/cdrom -I…/src/thread -I…/src/timer -I…/src/endian -I…/src/file
-s -o libSDL.la -rpath
/home/paul/midori-1.0.0-beta3/cache/tools/usr/local/lib -release 1.2
-version-info 0:2:0 SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo
main/libarch.la
audio/libaudio.la video/libvideo.la events/libevents.la
joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la

timer/libtimer.la endian/libendian.la file/libfile.la -lm
-L/usr/lib -ldl -lartsc -DPIC -fPIC -lpthread
-L/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/lib -lX11 -lXext
-lXxf86vm -lXxf86dga -lXv -ldl
rm -fr .libs/libSDL.la .libs/libSDL.* .libs/libSDL-1.2.*


The direct reference is -L/usr/lib -ldl -lartsc -lm etc… How do I change
the configure.in or other files to reference my build directories?

All other references such as x libs, x includes etc can be changed with an
option, can the above be changed aswell?

Any help would be greatly appreciated…I’m just a newbie so I’m probably
doing something stupid :wink:

Thanks

Paul


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

That would be great !

Which SDL libs have you packages for?
Are you using Midori-Beta-3? RH7.1?
Did you manage to get esound to compile?

So many questions…lol :slight_smile:

Thanks, Paul.On Thu, 1 Nov 2001 22:51, you wrote:

Hi Paul!

I’m currently assembling a small Midori based OS called ParaOS
(SDL, ParaGUI).

For this I created a set of SDL mlz packages I could provide if you are
interested. (But you would have to wait till Monday when I’m back in the
office).

Alex

On Thu, 2001-11-01 at 13:24, Paul wrote:

Hi

I’m trying to create an SDL package to work in Midori linux (.mlz) which
has it’s own GLIBC version bintools etc. I have used config options to
ensure that most libraries etc are referenced from within the build
directory structure and not my development system. This has worked well
so far but… When linking the shared libraries SDL references my
development libs…see below:

/bin/sh …/libtool --mode=link i686-ml-linux-gcc -Os -Wall
-DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DOSS_SUPPORT -DARTSC_SUPPORT -I/usr/include/kde/artsc
-I/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/include
-DENABLE_X11 -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL
-D_REENTRANT -DSDL_USE_PTHREADS -I…/include -I…/include/SDL -I…/src
-I…/src/linux -I…/src/main -I…/src/audio -I…/src/video
-I…/src/events -I…/src/joystick -I…/src/cdrom -I…/src/thread
-I…/src/timer -I…/src/endian -I…/src/file -s -o libSDL.la -rpath
/home/paul/midori-1.0.0-beta3/cache/tools/usr/local/lib -release 1.2
-version-info 0:2:0 SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo
main/libarch.la
audio/libaudio.la video/libvideo.la events/libevents.la
joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la

-------------- timer/libtimer.la endian/libendian.la file/libfile.la
-lm -L/usr/lib -ldl -lartsc -DPIC -fPIC -lpthread
-L/home/paul/midori-1.0.0-beta3/cache/tools/usr/X11R6/lib -lX11 -lXext
-lXxf86vm -lXxf86dga -lXv -ldl
rm -fr .libs/libSDL.la .libs/libSDL.* .libs/libSDL-1.2.*



The direct reference is -L/usr/lib -ldl -lartsc -lm etc… How do I
change the configure.in or other files to reference my build directories?

All other references such as x libs, x includes etc can be changed with
an option, can the above be changed aswell?

Any help would be greatly appreciated…I’m just a newbie so I’m
probably doing something stupid :wink:

Thanks

Paul


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

That would be great !

Which SDL libs have you packages for?

Currently SDL, SDLimage, freetype, ParaGUI.
But it’s quite easy to generate the missing libs like SDLnet, …
Just replace and rename the tarball inside the mlz.

Are you using Midori-Beta-3? RH7.1?
Yes. I’m using beta3.
No. I’m using Mandrake 8.1
:))

Did you manage to get esound to compile?
Yes. Out of the box.

So many questions…lol :slight_smile:
You’re welcome ;o)

Ok. I’ll post a link to the mlz’s on Monday.

AlexOn Thu, 2001-11-01 at 22:43, Paul wrote: