Fossil SCM

Add -Wdeprecated-declarations on Mac OS X to prevent warnings from openssl

steveb 2011-09-02 10:30 trunk
Commit 0fd14820f728a6f5f41a53d94569cbed7cfb5318
1 file changed +7
+7
--- auto.def
+++ auto.def
@@ -134,10 +134,17 @@
134134
define FOSSIL_ENABLE_SSL
135135
define-append EXTRA_CFLAGS $cflags
136136
define-append EXTRA_LDFLAGS $ldflags
137137
define-append LIBS -lssl -lcrypto
138138
msg-result "HTTP support enabled"
139
+
140
+ # Maybe needed to silence warnings on Mac OS X 10.7 with openssl
141
+ if {[string match *-darwin* [get-define host]]} {
142
+ if {[cctest -cflags {-Wdeprecated-declarations}]} {
143
+ define-append EXTRA_CFLAGS -Wdeprecated-declarations
144
+ }
145
+ }
139146
} else {
140147
user-error "OpenSSL not found. Consider --with-openssl=none to disable HTTPS support"
141148
}
142149
}
143150
144151
--- auto.def
+++ auto.def
@@ -134,10 +134,17 @@
134 define FOSSIL_ENABLE_SSL
135 define-append EXTRA_CFLAGS $cflags
136 define-append EXTRA_LDFLAGS $ldflags
137 define-append LIBS -lssl -lcrypto
138 msg-result "HTTP support enabled"
 
 
 
 
 
 
 
139 } else {
140 user-error "OpenSSL not found. Consider --with-openssl=none to disable HTTPS support"
141 }
142 }
143
144
--- auto.def
+++ auto.def
@@ -134,10 +134,17 @@
134 define FOSSIL_ENABLE_SSL
135 define-append EXTRA_CFLAGS $cflags
136 define-append EXTRA_LDFLAGS $ldflags
137 define-append LIBS -lssl -lcrypto
138 msg-result "HTTP support enabled"
139
140 # Maybe needed to silence warnings on Mac OS X 10.7 with openssl
141 if {[string match *-darwin* [get-define host]]} {
142 if {[cctest -cflags {-Wdeprecated-declarations}]} {
143 define-append EXTRA_CFLAGS -Wdeprecated-declarations
144 }
145 }
146 } else {
147 user-error "OpenSSL not found. Consider --with-openssl=none to disable HTTPS support"
148 }
149 }
150
151

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button