shithub: mc

Download patch

ref: 9d757335b10d0796259a963f5700692190df42b3
parent: edd7580d861f87f29b6fc8d6a11ad92cb37d6e13
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 22 17:45:17 EST 2016

Put strings in reasonable places on OpenBSD.

	This probably causes horrendous amounts of text relocations,
	but it seems to work.

--- a/configure
+++ b/configure
@@ -85,7 +85,9 @@
         echo '#define Symprefix ""' >> config.h
         echo '#define Defaultasm Gnugas' >> config.h
         echo 'export SYS=openbsd' >> config.mk
-        echo 'const Linkcmd = ["ld", "-static", "-o"]' >> mbld/config.myr
+        echo 'const Linkcmd = ["ld", "-static",' \
+		'"-Bstatic", "-dynamic-linker", "/usr/libexec/ld.so"' \
+		',"-o"]' >> mbld/config.myr
         echo 'const Sys = "OpenBSD"' >> mbld/config.myr
         ;;
     *)