summaryrefslogtreecommitdiff
authorzecke <zecke>2005-09-27 21:04:59 (UTC)
committer zecke <zecke>2005-09-27 21:04:59 (UTC)
commit061e4461d8916dfaa20d80a998341a222da9aa64 (patch) (unidiff)
tree5ac9af92bdf97c16fc7dd5797d434d82276e0fb3
parent04166623e424201b134fd090869b316fa7935ed0 (diff)
downloadopie-061e4461d8916dfaa20d80a998341a222da9aa64.zip
opie-061e4461d8916dfaa20d80a998341a222da9aa64.tar.gz
opie-061e4461d8916dfaa20d80a998341a222da9aa64.tar.bz2
Mac OS X compile fixes:
-disable the "fuege alle libs auf verdacht hinzu" hack and hope we will identify the root cause. -do not redefine cxa_... on Mac. At least the the Apple Linker is not happy with having that symbol defined twice. -well DYLD_BOOL could not be casted to bool. changing it to bool works -opiecore.pro use the same test as in include.pro to see if we build on linux
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--include.pro14
-rw-r--r--libopie2/opiecore/opiecore.pro3
-rw-r--r--library/qlibrary_unix.cpp2
-rw-r--r--library/qpeapplication.cpp2
4 files changed, 11 insertions, 10 deletions
diff --git a/include.pro b/include.pro
index f32786a..dd388f2 100644
--- a/include.pro
+++ b/include.pro
@@ -113,11 +113,11 @@ contains( CONFTEST, y ){
113 # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING 113 # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING
114 # (regarding whether you activate SQL) and the last one (-lopiecore2) 114 # (regarding whether you activate SQL) and the last one (-lopiecore2)
115 CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) 115 #CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND )
116 contains( CONFTEST, y ){ 116 #contains( CONFTEST, y ){
117 LIBS += -lopiedb2 -lqpe 117 # LIBS += -lopiedb2 -lqpe
118 } else { 118 #} else {
119 LIBS += -lqpe 119 # LIBS += -lqpe
120 } 120 #}
121 LIBS += -lopiecore2 121 #LIBS += -lopiecore2
122} 122}
123else { 123else {
diff --git a/libopie2/opiecore/opiecore.pro b/libopie2/opiecore/opiecore.pro
index cbb7e04..3406b8f 100644
--- a/libopie2/opiecore/opiecore.pro
+++ b/libopie2/opiecore/opiecore.pro
@@ -35,5 +35,6 @@ SOURCES = oapplication.cpp \
35 35
36# Disable Linux-only subsystems for MAC build 36# Disable Linux-only subsystems for MAC build
37!contains( CONFIG_TARGET_MACOSX, y ) { 37CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX )
38!contains( CONFTEST, y ) {
38include ( linux/linux.pro ) 39include ( linux/linux.pro )
39} else { 40} else {
diff --git a/library/qlibrary_unix.cpp b/library/qlibrary_unix.cpp
index 2181153..fee73c2 100644
--- a/library/qlibrary_unix.cpp
+++ b/library/qlibrary_unix.cpp
@@ -154,5 +154,5 @@ bool QLibraryPrivate::freeLibrary()
154 NSModule mod = desc->mod; 154 NSModule mod = desc->mod;
155 NSObjectFileImage img = desc->img; 155 NSObjectFileImage img = desc->img;
156 DYLD_BOOL success = NSUnLinkModule(mod, NSUNLINKMODULE_OPTION_NONE); 156 bool success = NSUnLinkModule(mod, NSUNLINKMODULE_OPTION_NONE);
157 if ( success ) { 157 if ( success ) {
158 NSDestroyObjectFileImage(img); 158 NSDestroyObjectFileImage(img);
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 19e99f2..dcc1001 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -2208,5 +2208,5 @@ void QPEApplication::hideOrQuit()
2208} 2208}
2209 2209
2210#if (__GNUC__ > 2 ) 2210#if (__GNUC__ > 2 ) && !defined(_OS_MACX_)
2211extern "C" void __cxa_pure_virtual(); 2211extern "C" void __cxa_pure_virtual();
2212 2212