Make sure that -fPIC is specified for C++ files too.

main
theraven 15 years ago
parent 06ff4be6a9
commit 28b1db6f6e

@ -8,6 +8,7 @@ SUBMINOR_VERSION = 0
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION) VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
CFLAGS += -std=gnu99 -fPIC CFLAGS += -std=gnu99 -fPIC
CXXFLAGS += -fPIC
CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP
CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500

@ -132,12 +132,20 @@ bool gnustep::libobjc::__objc_id_type_info::__do_catch(const type_info *thrownTy
return false; return false;
}; };
//static gnustep::libobjc::__objc_id_type_info objc_id_type_info; /**
* Public interface to the Objective-C++ exception mechanism
*/
extern "C" extern "C"
{ {
//gnustep::libobjc::__objc_id_type_info *__objc_id_type_info = &objc_id_type_info; /**
* The public symbol that the compiler uses to indicate the Objective-C id type.
*/
gnustep::libobjc::__objc_id_type_info __objc_id_type_info; gnustep::libobjc::__objc_id_type_info __objc_id_type_info;
/**
* Exception cleanup function for C++ exceptions that wrap Objective-C
* exceptions.
*/
static void exception_cleanup(_Unwind_Reason_Code reason, static void exception_cleanup(_Unwind_Reason_Code reason,
struct _Unwind_Exception *ex) struct _Unwind_Exception *ex)
{ {

Loading…
Cancel
Save