Skip to content

Commit 3e54257

Browse files
henderkesdunglas
andauthored
chore: remove system include locations from frankenphp.go (#1734)
* add "nosys" tag to not pull in system include locations * rename to "nosysinc" * Revert "rename to "nosysinc"" This reverts commit a7ff2a0. * remove paths all together * bring back rpath for macos Co-authored-by: Kévin Dunglas <kevin@dunglas.fr> --------- Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent 34fbfd4 commit 3e54257

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

frankenphp.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ package frankenphp
1616
// #cgo noescape frankenphp_update_server_context
1717
// #cgo darwin pkg-config: libxml-2.0
1818
// #cgo CFLAGS: -Wall -Werror
19-
// #cgo CFLAGS: -I/usr/local/include -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
2019
// #cgo linux CFLAGS: -D_GNU_SOURCE
21-
// #cgo darwin CFLAGS: -I/opt/homebrew/include
22-
// #cgo LDFLAGS: -L/usr/local/lib -L/usr/lib -lphp -lm -lutil
20+
// #cgo LDFLAGS: -lphp -lm -lutil
2321
// #cgo linux LDFLAGS: -ldl -lresolv
24-
// #cgo darwin LDFLAGS: -Wl,-rpath,/usr/local/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/libiconv/lib -liconv -ldl
22+
// #cgo darwin LDFLAGS: -Wl,-rpath,/usr/local/lib -liconv -ldl
2523
// #include <stdlib.h>
2624
// #include <stdint.h>
2725
// #include <php_variables.h>

0 commit comments

Comments
 (0)