I finally had my GNUstep makefile to make a library running. it looks like that:
#=========================================
include $(GNUSTEP_MAKEFILES)/common.make
 
LIBRARY_NAME = OneLib-ObjC
 
ADDITIONAL_OBJCFLAGS += -Wno-import -g -ggdb
ADDITIONAL_LDFLAGS += -lobjc -lgnustep-base
ADDITIONAL_LIB_DIRS += -Llibrary
ADDITIONAL_OBJC_LIBS += -lxml2 -larchive1 -lgnustep-gui
 
OneLib-ObjC_OBJC_FILES = deux.m one.m
 

# Include in the rules for making libraries
include $(GNUSTEP_MAKEFILES)/library.make
#=========================================
 
what kind of puzzles me is why have I to set the -lobjc -lgnustep-base  flag, while
1. I am compiling an objectiveC/GNUstep library with the GNUstep makefile system
2. I don't need to specify them when I compile a tool
?
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to