Skip to content

Commit 1ba2144

Browse files
committed
Remove -static-libgcc -static-libstdc++ for cross again
The resulting gem was 18 MB with these, removing them makes it go back to 2.6 MB again. Something changed somewhere :).
1 parent 3f014e2 commit 1ba2144

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tasks/ext.rake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ tmp = "#{Dir.pwd}/tmp/#{$plat}"
77
toolchain_file = "#{Dir.pwd}/ext/win.cmake"
88
install_dir = "#{tmp}/install"
99
install_dll = "#{install_dir}/bin/libtag.dll"
10-
ldflags = "-static-libgcc -static-libstdc++"
11-
$cross_config_options = [%(--with-opt-dir=#{install_dir} --with-ldflags="#{ldflags}")]
10+
$cross_config_options = ["--with-opt-dir=#{install_dir}"]
1211

1312
taglib_version = '1.9.1'
1413
taglib = "taglib-#{taglib_version}"
@@ -69,7 +68,7 @@ end
6968

7069
file install_dll => ["#{tmp}/#{taglib}"] do
7170
chdir "#{tmp}/#{taglib}" do
72-
sh %(cmake -DCMAKE_INSTALL_PREFIX=#{install_dir} -DCMAKE_TOOLCHAIN_FILE=#{toolchain_file} -DCMAKE_SHARED_LINKER_FLAGS="#{ldflags}" #{taglib_options})
71+
sh %(cmake -DCMAKE_INSTALL_PREFIX=#{install_dir} -DCMAKE_TOOLCHAIN_FILE=#{toolchain_file} #{taglib_options})
7372
sh "make VERBOSE=1"
7473
sh "make install"
7574
end

0 commit comments

Comments
 (0)