weltling / parle

Parser and lexer for PHP
Other
83 stars 9 forks source link

remove unneeded #23

Closed remicollet closed 3 years ago

remicollet commented 3 years ago

libstdc++ doesn't have to be added, ad when g++ is properly invoked for link, this library is always there

And
PHP_NEW_EXTENSION(parle, parle.cpp, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++14, cxx)

So C++ command (last option) is properly set and will be used.

remicollet commented 3 years ago

Build:

/bin/sh /work/GIT/pecl-and-ext/parle/libtool --mode=link g++ -shared ...

Check

$ ldd modules/parle.so 
    linux-vdso.so.1 (0x00007ffffc4bc000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f5ddaf38000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f5ddadf2000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f5ddac27000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f5ddac0c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5ddb1dc000)
weltling commented 3 years ago

Thanks!