ext/libyajl2/extconf.rb in libyajl2-0.1.17 vs ext/libyajl2/extconf.rb in libyajl2-0.1.18

- old
+ new

@@ -1,10 +1,23 @@ -exit(0) if ENV["USE_SYSTEM_LIBYAJL2"] require 'rbconfig' require 'fileutils' +if ENV["USE_SYSTEM_LIBYAJL2"] + File.open("Makefile", "w+") do |f| + f.write <<EOF +# dummy Makefile when we're not really installing +all: +\ttrue + +install: +\ttrue +EOF + end + exit(0) +end + module Libyajl2Build class BuildError < StandardError; end LIBYAJL2_VENDOR_DIR = File.expand_path("../vendor/yajl", __FILE__).freeze @@ -50,11 +63,12 @@ f.write <<EOF CC = gcc TARGET = libyajl DLLIB = $(TARGET).so CFLAGS = -I. -I../../../../ext/libyajl2 -fPIC -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -std=c99 -pedantic -Wpointer-arith -Wno-format-y2k -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wundef -Wwrite-strings -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes -O2 -DNDEBUG -LDFLAGS = -L. -fstack-protector -rdynamic -Wl,-export-dynamic -LIBS = -lpthread -ldl -lcrypt -lm -lc +LDFLAGS = -L. -fstack-protector -rdynamic +#LIBS = -lpthread -ldl -lcrypt -lm -lc +LIBS = -lpthread -ldl -lm -lc OBJS = yajl_alloc.o yajl_tree.o yajl_gen.o yajl_buf.o yajl.o yajl_encode.o yajl_lex.o yajl_parser.o yajl_version.o all: $(DLLIB) $(DLLIB): $(OBJS)