Kaydet (Commit) 697265b8 authored tarafından sb's avatar sb

sb136: #i114155# partially revert fix for i108776 to avoid ABI incompatibility of jvmaccess library

üst 9a29bc26
...@@ -26,16 +26,29 @@ ...@@ -26,16 +26,29 @@
#************************************************************************* #*************************************************************************
# Add certain symbol patterns to the first global section. # Add certain symbol patterns to the first global section.
#
# The below code fails with 'perverted' mapfiles (using a strange line layout,
# or containing version UDK_3_0_0 without a global section, ...).
BEGIN { state = 0 } BEGIN { state = 0 }
/\{/ && state == 1 { exit 1 } #TODO: print error explanation to stderr? END {
/^[\t ]*UDK_3_0_0[\t ]*\{/ && state == 0 { state = 1 } if (state == 0) {
/^[\t ]*global[\t ]*:/ && state == 1 { state = 2 } print "# Weak RTTI symbols for C++ exceptions:"
{ print } print "UDK_3_0_0 {"
print "global:"
print "_ZTI*; _ZTS*; # weak RTTI symbols for C++ exceptions"
if (ENVIRON["USE_SYSTEM_STL"] != "YES")
print "_ZN4_STL7num_put*; # for STLport"
print "};"
}
}
state == 2 { state == 2 {
print "_ZTI*; _ZTS*; # weak RTTI symbols for C++ exceptions" print "_ZTI*; _ZTS*; # weak RTTI symbols for C++ exceptions"
if (ENVIRON["USE_SYSTEM_STL"] != "YES") if (ENVIRON["USE_SYSTEM_STL"] != "YES")
print "_ZN4_STL7num_put*; # for STLport" print "_ZN4_STL7num_put*; # for STLport"
state = 3 state = 3
} }
END { if (state != 3) exit 1 } #TODO: print error explanation to stderr? # #i66636# - ???
/^[\t ]*UDK_3_0_0[\t ]*\{/ { state = 1 }
/^[\t ]*global[\t ]*:/ && state == 1 { state = 2 }
{ print }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment