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 GNULIB_DIR to LDFLAGS in configure.ac on Windows #2882

Merged
merged 1 commit into from Aug 1, 2018

Conversation

SeanCampbell
Copy link
Contributor

When building on Cygwin, the linker needs to be pointed to the directory with libgnu.dll to build properly.

LDFLAGS=""
if test "x$ac_system" = "xWindows"; then
# This is exported from build.sh
LDFLAGS="$LDFLAGS -L${GNULIB_DIR}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only be used for the strtok test. LDFLAGS is later reset to SAVE_LDFLAGS. Is that what you want?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, "-L${GNULIB_DIR}" is added to LDFLAGS in build.sh, so it's saved with the other flags in SAVE_LDFLAGS.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we move all of the windows specific stuff out of build.sh into configure.ac, and let configure detect that it's running under cygwin, where gnulib is etc. But I'm fine with this for now.

@rubenk rubenk merged commit 065f3ea into collectd:master Aug 1, 2018
@SeanCampbell SeanCampbell deleted the gnulib branch August 1, 2018 21:42
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

Successfully merging this pull request may close these issues.

None yet

5 participants