We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8762b4b commit 9257da9Copy full SHA for 9257da9
console/src/Builder.php
@@ -233,7 +233,7 @@ public function link()
233
}
234
235
$link_option = ' -L./lib';
236
- $libs = trim(`php-config --libs`);
+ $libs = self::PHPX_LFLAGS;
237
$ldflags = trim(`php-config --ldflags`);
238
239
/**
@@ -243,15 +243,14 @@ public function link()
243
244
if ($this->isExtension()) {
245
$link_option .= ' -shared';
246
- $libs .= " " . self::PHPX_LFLAGS;
247
248
* MacOS 需要增加连接参数
249
*/
250
if (strcasecmp(PHP_OS, "Darwin") === 0) {
251
$link_option .= " -undefined dynamic_lookup";
252
253
} else {
254
- $libs .= " " . self::PHPX_LFLAGS . ' -lphp7';
+ $libs .= ' -lphp7';
255
256
257
$this->exec(self::CXX . " $objects {$ldflags} {$libs} {$this->ldflags} {$link_option} -o {$this->target}");
0 commit comments