Merge pull request #27 from deuill/feature/26_fix-debian-build-issues

php7: Allow for additional `php7.debian` build tag
This commit is contained in:
Alex Palaistras 2016-09-22 20:43:36 -07:00 committed by GitHub
commit 4d03d4c334
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// +build !php7
// +build !php7,!php7.debian
package engine

12
engine/php7-debian.go Normal file
View File

@ -0,0 +1,12 @@
// +build php7.debian
//
// 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.
package engine
// #cgo CFLAGS: -I/usr/include/php/20151012 -Iinclude/php7 -Isrc/php7
// #cgo LDFLAGS: -lphp7.0
import "C"