diff --git a/converters/wkhtmltopdf/Makefile b/converters/wkhtmltopdf/Makefile
index 4d757f02551b..4f3575713e73 100644
--- a/converters/wkhtmltopdf/Makefile
+++ b/converters/wkhtmltopdf/Makefile
@@ -25,7 +25,6 @@ USE_XORG= x11 xext xrender
USE_PERL5= build
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
-USE_GCC= yes
OPTIONS_DEFINE= BUNDLED_LIBS
BUNDLED_LIBS_DESC= Use Qt-bundled jpeg, mng, png and tiff
@@ -53,6 +52,10 @@ MAKE_ARGS+= INSTALL_ROOT="${PREFIX}"
NO_STAGE= yes
.include
+.if ${OSVERSION} > 1000000
+USE_GCC= yes
+.endif
+
.if ${OSVERSION} < 800000
BROKEN= fails to extract on FreeBSD 7.X
.endif