Lines 1-6
Link Here
|
1 |
--- ext/pg_query/extconf.rb.orig 2021-05-19 21:51:31 UTC |
1 |
--- ext/pg_query/extconf.rb.orig 2021-05-19 21:51:31 UTC |
2 |
+++ ext/pg_query/extconf.rb |
2 |
+++ ext/pg_query/extconf.rb |
3 |
@@ -7,13 +7,6 @@ require 'pathname' |
3 |
@@ -7,13 +7,7 @@ require 'pathname' |
4 |
|
4 |
|
5 |
$objs = Dir.glob(File.join(__dir__, '*.c')).map { |f| Pathname.new(f).sub_ext('.o').to_s } |
5 |
$objs = Dir.glob(File.join(__dir__, '*.c')).map { |f| Pathname.new(f).sub_ext('.o').to_s } |
6 |
|
6 |
|
Lines 12-17
Link Here
|
12 |
-else |
12 |
-else |
13 |
- $DLDFLAGS << " -Wl,--retain-symbols-file=#{SYMFILE}" |
13 |
- $DLDFLAGS << " -Wl,--retain-symbols-file=#{SYMFILE}" |
14 |
-end |
14 |
-end |
15 |
+$CFLAGS << " -I#{File.join(__dir__, 'include')} -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -DHAVE_STRCHRNUL -g" |
15 |
+$CFLAGS << " -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -DHAVE_STRCHRNUL -g" |
|
|
16 |
+$INCFLAGS = "-I#{File.join(__dir__, 'include')} " + $INCFLAGS |
16 |
|
17 |
|
17 |
create_makefile 'pg_query/pg_query' |
18 |
create_makefile 'pg_query/pg_query' |