-
Notifications
You must be signed in to change notification settings - Fork 150
/
php7-debian.go
18 lines (16 loc) · 705 Bytes
/
php7-debian.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Alexander Palaistras. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
//
// Build tags specific to Debian (and Debian-derived, such as Ubuntu)
// distributions. Debian builds its PHP7 packages with non-standard naming
// conventions for include and library paths, so we need a specific build tag
// for building against those packages.
//
// +build debian,!php5
package php
// #cgo CFLAGS: -I/usr/include/php/20151012 -Iinclude/php7 -Isrc/php7
// #cgo CFLAGS: -I/usr/include/php/20151012/main -I/usr/include/php/20151012/Zend
// #cgo CFLAGS: -I/usr/include/php/20151012/TSRM
// #cgo LDFLAGS: -lphp7.0
import "C"