ports/java/openjdk12/files/patch-make_autoconf_libraries.m4
Jung-uk Kim d3c95d36f1 Fix iconv(3) issues.
PR:		236759
2019-03-28 23:27:12 +00:00

19 lines
717 B
Text

--- make/autoconf/libraries.m4
+++ make/autoconf/libraries.m4
@@ -181,9 +181,13 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
LIBS="$save_LIBS"
if test "x$OPENJDK_TARGET_OS" = "xbsd"; then
- if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
- ICONV_CFLAGS="-I$PACKAGE_PATH/include"
- ICONV_LDFLAGS="-L$PACKAGE_PATH/lib"
+ if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.freebsd"; then
+ ICONV_CFLAGS=%%ICONV_CFLAGS%%
+ ICONV_LDFLAGS=%%ICONV_LDFLAGS%%
+ ICONV_LIBS=%%ICONV_LIBS%%
+ elif test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
+ ICONV_CFLAGS="-I/usr/local/include"
+ ICONV_LDFLAGS="-L/usr/local/lib"
ICONV_LIBS=-liconv
else
ICONV_CFLAGS=