Make the 32-bit aldec simulator work on a 64-bit platform
@@ -137,8 +137,12 @@ LIB_LOAD = PATH=$(MINGW_BIN_DIR):$(OLD_PATH):$(LIB_DIR)
NEW_PYTHONPATH := $(shell echo "$(PYTHONPATH)" | sed -e 's/\\/\//g' -e 's/\([a-zA-Z]\):\//\/\1\//g' -e 's/;/:/g')
else
EXTRA_LIBS = -laldecpli
+ifeq ($(ARCH),i686)
+EXTRA_LIBDIRS = -L$(ALDEC_BIN_DIR)/Linux
+else
EXTRA_LIBDIRS = -L$(ALDEC_BIN_DIR)/Linux64
-LIB_LOAD = LD_LIBRARY_PATH=$(LIB_DIR):$(LD_LIBRARY_PATH)
+endif
+LIB_LOAD := LD_LIBRARY_PATH=$(LIB_DIR):$(LD_LIBRARY_PATH)
NEW_PYTHONPATH := $(PYTHONPATH)
endif
