Static version of extract

View: New views
2 Messages — Rating Filter:   Alert me  

Static version of extract

by Vincent MAUGE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I need a static version of extract for a project. I tried various
configuration lines like
"CPPFLAGS=-static LDFLAGS=-static CFLAGS=-static
ac_cv_lib_rpm_rpmReadPackageFile=no ./configure --disable-rpath
--enable-static  --disable-share --disable-exiv2  --with-pic"
but the result is never a static binary as I need.

$file /src/main/extract
src/main/extract: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15,
not stripped

How can I compile extract to get a static version ?

Thanks in advance,


Vincent


_______________________________________________
libextractor mailing list
libextractor@...
http://lists.gnu.org/mailman/listinfo/libextractor

Re: Static version of extract

by Christian Grothoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I don't think it is generally possible to build a static version of extract
given that the code makes extensive use of plugins (dlsym/dlopen).  I've
certainly never tried myself and I'm not aware of anyone who did manage.

Best,

Christian

Am Wednesday 05 August 2009 11:49:19 schrieb Vincent MAUGE:

> Hello,
>
> I need a static version of extract for a project. I tried various
> configuration lines like
> "CPPFLAGS=-static LDFLAGS=-static CFLAGS=-static
> ac_cv_lib_rpm_rpmReadPackageFile=no ./configure --disable-rpath
> --enable-static  --disable-share --disable-exiv2  --with-pic"
> but the result is never a static binary as I need.
>
> $file /src/main/extract
> src/main/extract: ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15,
> not stripped
>
> How can I compile extract to get a static version ?
>
> Thanks in advance,
>
>
> Vincent
>
>
> _______________________________________________
> libextractor mailing list
> libextractor@...
> http://lists.gnu.org/mailman/listinfo/libextractor


_______________________________________________
libextractor mailing list
libextractor@...
http://lists.gnu.org/mailman/listinfo/libextractor