diff options
Diffstat (limited to 'Objective-C/GNUmakefile')
-rw-r--r-- | Objective-C/GNUmakefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Objective-C/GNUmakefile b/Objective-C/GNUmakefile index 92934ed..4552e69 100644 --- a/Objective-C/GNUmakefile +++ b/Objective-C/GNUmakefile @@ -2,15 +2,20 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../version.make +USE_LIBFFI = 1 + LIBRARY_NAME = libobjcl RPM_DISABLE_RELOCATABLE = YES ADDITIONAL_OBJCFLAGS = -Wall -g -DVERSION=\"$(VERSION)\" -I/usr/local/include -ADDITIONAL_LDFLAGS = -lffi -ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI - libobjcl_OBJC_FILES = libobjcl.m objc_support.m objc-runtime-apple.m objc-runtime-gnu.m LIBRARIES_DEPEND_UPON = $(FND_LIBS) $(GUI_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS) $(CONFIG_SYSTEM_LIBS) +ifdef USE_LIBFFI +ADDITIONAL_LDFLAGS = -lffi +ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI +libobjcl_OBJC_FILES += libffi_support.m +endif + include $(GNUSTEP_MAKEFILES)/library.make |