JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix LD_PRELOAD error on Linux.
authorReginald Kennedy <rk@rejii.com>
Mon, 2 Dec 2013 15:20:55 +0000 (23:20 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 2 Dec 2013 15:47:02 +0000 (23:47 +0800)
commitb397ce68dc21d8bae4dfafb33842feaa13600bb8
treead44d4370045e2e7d15bbce8f76f6f5401c09750
parenta91fc9f2e2492eabbfc24463bd90e5e0aec51cc1
Fix LD_PRELOAD error on Linux.
On 64-bit Linux systems, if LD_PRELOAD isn't a relative/absolute
pathname to libswmhack.so, then ld.so attempts to load a 32-bit version
for 32-bit programs.  This produces an error message.  The solution is
to either build and install a 32-bit libswmhack.so.0.0 or use an
absolute/relative path so that ld.so only loads libswmhack.so for 64-bit
binaries.

Fix Makefiles to set variables before they are referenced.
linux/Makefile
osx/Makefile