Mercurial > mxe-octave
diff tools/make-shared-from-static @ 3070:d89eccc2edd3
[MSVC] enable zlib compilation
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 21 Jun 2013 09:42:47 -0400 |
parents | 4c047285ea8a |
children | a46b4b6fc26f |
line wrap: on
line diff
--- a/tools/make-shared-from-static Thu Jun 20 17:21:08 2013 -0400 +++ b/tools/make-shared-from-static Fri Jun 21 09:42:47 2013 -0400 @@ -148,7 +148,11 @@ NM=nm SED=sed global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*_\\([_A-Za-z][_A-iZa-z0-9]*\\)\\{0,1\\}\$/\\1 _\\2 \\2/p' | sed '/ __gnu_lto/d'" -export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED -e '/^[BCDGRS][ ]/s/.*[ ]\\\\([^ ]*\\\\)/\\\\1,DATA/' | \$SED -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq >> \$export_symbols" +# Ignore DATA symbols for now. They should be be properly exported from +# the source code using dllexport. They can't be re-exported manually like +# this using MSVC. +#export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED -e '/^[BCDGRS][ ]/s/.*[ ]\\\\([^ ]*\\\\)/\\\\1,DATA/' | \$SED -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq >> \$export_symbols" +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED -e '/^[BCDGRS][ ]/d' | \$SED -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq >> \$export_symbols" mkdir $tmpdir