Skip to content

Commit bc0f610

Browse files
authored
Use CMake -fPIC flag on all platforms (#1)
1 parent 4fbc32d commit bc0f610

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/compact_enc_det/extconf.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33

44
compact_enc_det_path = File.expand_path("../compact_enc_det/compact_enc_det", __dir__)
55

6-
host_cpu = RbConfig::CONFIG['host_cpu']
7-
is_amd64 = host_cpu == 'x86_64' || host_cpu == 'amd64'
8-
96
compact_enc_det_build_command = "cd #{compact_enc_det_path} &&"
10-
compact_enc_det_build_command += " CXXFLAGS=\"-fPIC\"" if is_amd64
7+
compact_enc_det_build_command += " CXXFLAGS=\"-fPIC\""
118
compact_enc_det_build_command += " ./autogen.sh"
129

1310
unless system(compact_enc_det_build_command)

0 commit comments

Comments
 (0)