Fossil SCM
Add -Wdeprecated-declarations on Mac OS X to prevent warnings from openssl
Commit
0fd14820f728a6f5f41a53d94569cbed7cfb5318
Parent
90b692ba5fb5482…
1 file changed
+7
M
auto.def
+7
| --- auto.def | ||
| +++ auto.def | ||
| @@ -134,10 +134,17 @@ | ||
| 134 | 134 | define FOSSIL_ENABLE_SSL |
| 135 | 135 | define-append EXTRA_CFLAGS $cflags |
| 136 | 136 | define-append EXTRA_LDFLAGS $ldflags |
| 137 | 137 | define-append LIBS -lssl -lcrypto |
| 138 | 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 | + } | |
| 139 | 146 | } else { |
| 140 | 147 | user-error "OpenSSL not found. Consider --with-openssl=none to disable HTTPS support" |
| 141 | 148 | } |
| 142 | 149 | } |
| 143 | 150 | |
| 144 | 151 |
| --- 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 |