Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configure option to not build libfl (Feature request) #99

Closed
Explorer09 opened this issue Oct 25, 2016 · 0 comments
Closed

Add configure option to not build libfl (Feature request) #99

Explorer09 opened this issue Oct 25, 2016 · 0 comments
Milestone

Comments

@Explorer09
Copy link
Contributor

Copied from SourceForge bug report #200 (Reported my me also)

Building flex without libfl is useful when you know that this flex build of yours will be used only with a cross-toolchain. For cross-building environments, having a libfl built for the host architecture is not useful. (We need one for the target architecture instead.)

For my case, although I would need to configure and build flex twice for a cross environment, I need to use a hack to disable libfl currently:

sed -i.bak -e 's/lib_LTLIBRARIES = \$/lib_LTLIBRARIES =/' \
    -e 's/\tlibfl.la \$/#&/' -e 's/\tlibfl_pic.la$/#&/' src/Makefile.in

It's better to make it into a configure option. (For your reference, GNU Bison can disable building liby by the '--disable-yacc' option.)

Alternatively, add a configure-time variable to explicitly specify which compiler will be used to build libfl (could be named CC_FOR_TARGET or CC_FOR_LIBFL). If using this approach, don't forget the respective CFLAGS_FOR_TARGET and other variables.

@westes westes added this to the 2.7.0 milestone Oct 25, 2016
Explorer09 added a commit to Explorer09/flex that referenced this issue Oct 31, 2016
Disabling libfl is useful when building flex for a cross-toolchain.

Fixes: westesGH-99
@westes westes closed this as completed in 5d71e9f Nov 14, 2016
alagoutte pushed a commit to alagoutte/flex that referenced this issue Dec 19, 2016
Disabling libfl is useful when building flex for a cross-toolchain.

Fixes: westesGH-99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants