Usermode/libreadline - Fix backspace
[tpg/acess2.git] / Usermode / Libraries / Makefile.cfg
index 4bb2c99..d134c85 100644 (file)
@@ -15,6 +15,15 @@ ifeq ($(ARCHDIR),native)
   LDFLAGS += -Wl,-init,SoMain
   CFLAGS += -fPIC
  endif
+else ifneq ($(HOST_ARCH),)
+ ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
+ #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
+ LD := $(CC)
+ ifeq ($(PLATFORM),windows)
+ else
+  LDFLAGS += -Wl,-init,SoMain
+  CFLAGS += -fPIC
+ endif
 else
  CPPFLAGS := -ffreestanding
  CFLAGS   := -fno-stack-protector -fPIC

UCC git Repository :: git.ucc.asn.au