suaveant has asked for the wisdom of the Perl Monks concerning the following question:
The problem is... that doesn't look like it will play nicely with Makefile.PL, especially the libtool line which uses libtool distributed with the mysql source.make mi_test1 source='mi_test1.c' object='mi_test1.o' libtool=no \ depfile='.deps/mi_test1.Po' tmpdepfile='.deps/mi_test1.TPo' \ depmode=gcc /bin/ksh ../depcomp \ gcc -DMAP_TO_USE_RAID -I. -I. -I.. -I./../include -I../include -O3 + -DDBUG_OFF -DHAVE_CURSES_H -I/idcom/tmp/mysql-4.0.12/include -DHAV +E_RWLOCK_T -c `test -f mi_test1.c || echo './'`mi_test1.c /bin/ksh ../libtool --mode=link gcc -O3 -DDBUG_OFF -DHAVE_CURSES_H +-I/idcom/tmp/mysql-4.0.12/include -DHAVE_RWLOCK_T -o mi_test1 mi_ +test1.o libmyisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings +/libmystrings.a -lpthread -lthread -lcrypt -lgen -lsocket -lnsl -lm +-lpthread -lthread gcc -O3 -DDBUG_OFF -DHAVE_CURSES_H -I/idcom/tmp/mysql-4.0.12/include - +DHAVE_RWLOCK_T -o mi_test1 mi_test1.o libmyisam.a ../mysys/libmysys. +a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lthread -lcr +ypt -lgen -lsocket -lnsl -lm -lpthread -lthread
can anyone help me figure out how to get rework this into a more normal compile that I can work into Makefile.PL. I know C allright, but when it comes to linking libraries I am not very knowledgable.
- Ant
- Some of my
best work - (1 2 3)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting a C library to compile into a Perl module...
by tinypig (Beadle) on May 12, 2003 at 19:52 UTC | |
by suaveant (Parson) on May 12, 2003 at 20:52 UTC | |
|
Additional Info
by suaveant (Parson) on May 12, 2003 at 16:57 UTC | |
|
Re: Getting a C library to compile into a Perl module...
by Madams (Pilgrim) on May 12, 2003 at 21:34 UTC | |
by suaveant (Parson) on May 12, 2003 at 21:41 UTC | |
|
Re: Getting a C library to compile into a Perl module...
by Coplan (Pilgrim) on May 12, 2003 at 16:51 UTC |