Unverified Commit adf4e19c authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #2 from libp2p/fix/freebsd

feat: add freebsd support
parents 02987888 7e0f41e6
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
package openssl package openssl
// #cgo linux windows pkg-config: libssl libcrypto // #cgo linux windows freebsd pkg-config: libssl libcrypto
// #cgo linux CFLAGS: -Wno-deprecated-declarations // #cgo linux freebsd CFLAGS: -Wno-deprecated-declarations
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations // #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto // #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
package openssl package openssl
// #cgo linux windows pkg-config: --static libssl libcrypto // #cgo linux windows freebsd pkg-config: --static libssl libcrypto
// #cgo linux CFLAGS: -Wno-deprecated-declarations // #cgo linux CFLAGS: -Wno-deprecated-declarations
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations // #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto // #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build linux darwin solaris // +build linux darwin solaris freebsd
// +build !windows // +build !windows
package openssl package openssl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment