File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public function link()
233
233
}
234
234
235
235
$ link_option = ' -L./lib ' ;
236
- $ libs = trim (` php-config --libs `) ;
236
+ $ libs = self :: PHPX_LFLAGS ;
237
237
$ ldflags = trim (`php-config --ldflags `);
238
238
239
239
/**
@@ -243,15 +243,14 @@ public function link()
243
243
244
244
if ($ this ->isExtension ()) {
245
245
$ link_option .= ' -shared ' ;
246
- $ libs .= " " . self ::PHPX_LFLAGS ;
247
246
/**
248
247
* MacOS 需要增加连接参数
249
248
*/
250
249
if (strcasecmp (PHP_OS , "Darwin " ) === 0 ) {
251
250
$ link_option .= " -undefined dynamic_lookup " ;
252
251
}
253
252
} else {
254
- $ libs .= " " . self :: PHPX_LFLAGS . ' -lphp7 ' ;
253
+ $ libs .= ' -lphp7 ' ;
255
254
}
256
255
257
256
$ this ->exec (self ::CXX . " $ objects {$ ldflags } {$ libs } {$ this ->ldflags } {$ link_option } -o {$ this ->target }" );
You can’t perform that action at this time.
0 commit comments