-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Configure script needs an update #3014
Comments
AFAIK Node still supports building against a shared libuv (Debian does this). What is the problem with those options? |
@saghul node 0.12's configure script uses this: def configure_libuv(o):
o['variables']['node_shared_libuv'] = b(options.shared_libuv)
# assume shared libuv if one of these is set?
if options.shared_libuv_libpath:
o['libraries'] += ['-L%s' % options.shared_libuv_libpath]
else:
o['variables']['uv_library'] = 'static_library'
if options.shared_libuv_libname:
o['libraries'] += ['-l%s' % options.shared_libuv_libname]
elif options.shared_libuv:
o['libraries'] += ['-luv']
if options.shared_libuv_includes:
o['include_dirs'] += [options.shared_libuv_includes] whereas node 4.1.0's uses the more general def configure_library(lib, output):
shared_lib = 'shared_' + lib
output['variables']['node_' + shared_lib] = b(getattr(options, shared_lib))
if getattr(options, shared_lib):
(pkg_libs, pkg_cflags, pkg_libpath) = pkg_config(lib)
if pkg_cflags:
output['include_dirs'] += (
filter(None, map(str.strip, pkg_cflags.split('-I'))))
# libpath needs to be provided ahead libraries
if pkg_libpath:
output['libraries'] += (
filter(None, map(str.strip, pkg_libpath.split('-L'))))
default_libs = getattr(options, shared_lib + '_libname')
default_libs = map('-l{0}'.format, default_libs.split(','))
if pkg_libs:
output['libraries'] += pkg_libs.split()
elif default_libs:
output['libraries'] += default_libs which calls out to I suspected this was a bug in the configure script when I realized that @brendanashworth FYI this bug is not (as far as I can tell) libuv-specific because it applies to all shared dependencies. |
#3135 is one PR that addresses this, there may be more. |
@bnoordhuis was this fixed in #3135 or do more changes need to be made? |
Yes, #3135 should have fixed it. I'll close the issue. |
The configure script still prints out these when you pass
--help
:which really confused me when I tried to figure out why clang couldn't find uv.h.
The text was updated successfully, but these errors were encountered: