We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 891a222 + 0807e9e commit 899555aCopy full SHA for 899555a
1 file changed
src/Package/Library/watcher.php
@@ -20,9 +20,8 @@ public function build(): void
20
if (stripos($cflags, '-fpic') === false) {
21
$cflags .= ' -fPIC';
22
}
23
- $ldflags = $this->getLibExtraLdFlags() ? ' ' . $this->getLibExtraLdFlags() : '';
24
shell()->cd("{$this->getSourceDir()}/watcher-c")
25
- ->exec(getenv('CXX') . " -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra {$cflags}{$ldflags}")
+ ->exec(getenv('CXX') . " -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra {$cflags}")
26
->exec(getenv('AR') . ' rcs libwatcher-c.a libwatcher-c.o');
27
28
copy("{$this->getSourceDir()}/watcher-c/libwatcher-c.a", "{$this->getLibDir()}/libwatcher-c.a");
0 commit comments