configure: WARNING: unrecognized options: --disable-shared

1,798 views
Skip to first unread message

florent...@gmail.com

unread,
Apr 27, 2015, 10:13:40 AM4/27/15
to afl-...@googlegroups.com
Hi.

I have a little issue when I run this command :

CC=/home/jc/AFL/afl-1.71b/afl-gcc ./configure --disable-shared

-->

configure: WARNING: unrecognized options: --disable-shared

How can I fix that, please ?

Thank you!!
Flo

Michal Zalewski

unread,
Apr 27, 2015, 10:16:30 AM4/27/15
to afl-users
> configure: WARNING: unrecognized options: --disable-shared

Some configure scripts do not support the flag. You don't need to fix it.

/mz

florent...@gmail.com

unread,
Apr 27, 2015, 10:22:38 AM4/27/15
to afl-...@googlegroups.com


... But if I want to fuzz a library, I don't need of this option ?

I thought put the "--disable-shared" or "static" option directly in the Makefile, in the CFLAGS variable.
Is it not a good idea ?

Michal Zalewski

unread,
Apr 27, 2015, 10:31:39 AM4/27/15
to afl-users
> ... But if I want to fuzz a library, I don't need of this option ?

The option prevents some libraries from being built as .so, which can
simplify running the resulting binaries. Test and see - if the
compiled binary works when executed manually, you're all set. If it
doesn't, you may need to find an equivalent option or set
LD_LIBRARY_PATH.

> I thought put the "--disable-shared" or "static" option directly in the
> Makefile, in the CFLAGS variable.

--disable-shared will not work in Makefile and -static does something else.

/mz
Reply all
Reply to author
Forward
0 new messages