ext/dtext/extconf.rb in dtext_rb-1.8.0 vs ext/dtext/extconf.rb in dtext_rb-1.9.0
- old
+ new
@@ -1,10 +1,10 @@
require "mkmf"
$warnflags = "-Wall -Wextra -Wno-unused-parameter"
$CFLAGS << " -std=c99 -D_GNU_SOURCE #{ENV["CFLAGS"]}"
-pkg_config "glib-2.0"
+$CFLAGS << " " << (pkg_config "glib-2.0", "cflags")
have_library "glib-2.0"
have_header "glib.h"
have_header "dtext.h"
create_makefile "dtext/dtext"