diff --git a/com.oracle.truffle.r.native/gnur/Makefile.gnur b/com.oracle.truffle.r.native/gnur/Makefile.gnur
index c15160be48c4ac1dde218d6d35e8a841b6c08d68..76eb523030ffa5275c1111b968117073b6311ec0 100644
--- a/com.oracle.truffle.r.native/gnur/Makefile.gnur
+++ b/com.oracle.truffle.r.native/gnur/Makefile.gnur
@@ -96,6 +96,7 @@ iconv_build: $(ICONV)/lib/libcharset.so
 $(ICONV)/lib/libcharset.so:
 	(cd $(ICONV); $(MAKE) MAKE=$(MAKE) && $(MAKE) MAKE=$(MAKE) install > iconv_make.log 2>&1)
 else
+    GNUR_CONFIG_FLAGS := CFLAGS=-DLIBICONV_PLUG CPPFLAGS=-DLIBICONV_PLUG CXXFLAGS=-DLIBICONV_PLUG
 iconv:
 endif
 # end SunOS