Project

General

Profile

Bug #10651 ยป mkmf-pkgconfig-return-value.patch

jeremyevans0 (Jeremy Evans), 07/08/2019 03:19 AM

View differences:

lib/mkmf.rb
#
# Where {option} is, for instance, <code>--cflags</code>.
#
# The values obtained are appended to +$CFLAGS+, +$LDFLAGS+ and
# The values obtained are appended to +$INCFLAGS+, +$CFLAGS+, +$LDFLAGS+ and
# +$libs+.
#
# If an <code>option</code> argument is given, the config command is
......
$LDFLAGS = [orig_ldflags, ldflags].join(' ')
Logging::message "package configuration for %s\n", pkg
Logging::message "cflags: %s\nldflags: %s\nlibs: %s\n\n",
cflags, ldflags, libs
[cflags, ldflags, libs]
Logging::message "incflags: %s\ncflags: %s\nldflags: %s\nlibs: %s\n\n",
incflags, cflags, ldflags, libs
[[incflags, cflags].join(' '), ldflags, libs]
else
Logging::message "package configuration for %s is not found\n", pkg
nil
    (1-1/1)