Skip to content

Commit

Permalink
Use CMake -fPIC flag on all platforms (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystof-k authored Feb 5, 2024
1 parent 4fbc32d commit bc0f610
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/compact_enc_det/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

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

host_cpu = RbConfig::CONFIG['host_cpu']
is_amd64 = host_cpu == 'x86_64' || host_cpu == 'amd64'

compact_enc_det_build_command = "cd #{compact_enc_det_path} &&"
compact_enc_det_build_command += " CXXFLAGS=\"-fPIC\"" if is_amd64
compact_enc_det_build_command += " CXXFLAGS=\"-fPIC\""
compact_enc_det_build_command += " ./autogen.sh"

unless system(compact_enc_det_build_command)
Expand Down

0 comments on commit bc0f610

Please sign in to comment.