-----BEGIN PGP SIGNED MESSAGE-----

Moin,

this hand-rolled shell script compiles just fine and all tests pass 
afterwards:

########################
/home/usr/local/bin/perl /usr/local/lib/perl5/5.8.2/ExtUtils/xsubpp  -C++ 
- -typemap /usr/local/lib/perl5/5.8.2/ExtUtils/typemap  Irrlicht.xs > 
Irrlicht.xsc && mv Irrlicht.xsc Irrlicht.c

g++ Irrlicht.c -shared -fno-strict-aliasing -o blib/arch/auto/Games/
Irrlicht/Irrlicht.so -I/usr/local/include "-I/usr/local/lib/perl5/5.8.2/
i686-linux/CORE" -L"/usr/X11R6/lib" -L"/usr/local/lib/Irrlicht" -lIrrlicht 
- -lGL -lXxf86vm -lXext -lX11 -ljpeg -lz
########################

Of course, it is not portable at all.

The problem seems to be therefore that MakeMake only looks into /usr/lib/ 
and /usr/local/lib but not in /usr/X11/lib nor /usr/lib/Irrlicht and 
similiar paths. It thus does not find the libs and helpfully leaves them 
off when compiling/linking on the idea that if MM doesn't find the lib, the 
linker won't, either. (Even though the linker _would_ find them). The 
result is an not-loadable object file :(

Is there a way to tell MakeMaker to look into which dirs for libs? I read 
the doc but couldn't find anything related to that... Paragraphs like:

CONFIG
         Arrayref. E.g. [qw(archname manext)] defines ARCHNAME &
         MANEXT from config.sh. MakeMaker will add to CONFIG the
         following values anyway: ar cc cccdlflags ccdlflags
         dlext dlsrc ld lddlflags ldflags libc lib_ext obj_ext
         ranlib sitelibexp sitearchexp so

just want me to throw my monitor out of the window and relocate to France to 
grow melons and feed chickens...

Cheers,

Tels

- -- 
 Signed on Sat Feb 28 12:14:02 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Man, I'm hot." - "Thirsty?" - "No, I mean good looking."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQEB5AHcLPEOTuEwVAQHUhwf9E7W66Luknv1PI2eeAofiLJCV89mkbl0k
7YiOFU80JxyZHZS9MNOw6EJTXoEOcE5UCEIx0+RrdqcJajG87XTQHcbBx9hEjpGe
Y5srNVRQp+k2mQcbNolIGZ3aD8q664Um5FJiI9xpXkjdpMccaQnb/HE5AAPOw/zD
qBLYYma0+gSIjlIaL0DryzrENmaKMciyCOdIi05+sg2X1TA0tbyZ0dUjYDfMZyly
KctREM9xniXsQNM2Ec+WBpPd1qniXkzjPC57WViAhtlwqyckEkDMrpjngF6jKcFt
Nd6syEI7tHGvPq6OxCA03Fg0BFUC1/YVCwpccrxs1fArqtKm3L+YCw==
=GSu+
-----END PGP SIGNATURE-----

Reply via email to