Skip to content

Instantly share code, notes, and snippets.

View obi1's full-sized avatar

Tadej Obrstar obi1

View GitHub Profile
--- a/configure 2021-09-11 08:41:58.633075232 +0200
+++ b/configure 2021-09-11 09:36:38.114799528 +0200
@@ -2411,7 +2411,7 @@
const char * _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; return s; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
-$CXX $LDFLAGS $CXXFLAGS -o $TMPO$HOSTEXEEXT tmp_endianness_check.cpp
+$CXX $LDFLAGS $CXXFLAGS -o $TMPO$HOSTEXEEXT -shared tmp_endianness_check.cpp
if $_strings $TMPO$HOSTEXEEXT | grep BIGenDianSyS >/dev/null; then
_endian=big