You need to use ${PREFIX} instead of /usr/local

On Wed, 9 Nov 2011 17:23:27 +0100, Axel Scheepers wrote:
On Wed, Nov 09, 2011 at 10:25:43AM +0100, David Coppa wrote:
Can you try the patch below?

Hello David,

With that patch sdl applications work as expected. Thanks!

I noticed that grafx2 needs another patch to make it run
without having to specify the full path to the executable.
For now I've hardcoded the path until I find out how to
get the full executable path under openbsd.

Kind regards,

Axel Scheepers


--- setup.c.org Wed Nov  9 01:19:13 2011
+++ setup.c     Wed Nov  9 01:20:37 2011
@@ -109,6 +109,9 @@
   }
   Extract_path(program_dir, argv0);

+  #elif defined(__OpenBSD__)
+    strcpy(program_dir, "/usr/local/bin/");
+
   // Others: The part of argv[0] before the executable name.
   // Keep the last \ or /.
// On Windows, Mingw32 already provides the full path in all cases.

--
Sending from my computer

Reply via email to