Bug #66592 [Opn]: relative paths in PHP_NEW_EXTENSION soruces
| From: | investfund2007 at yandex dot ru | Date: | Tue, 28 Jan 2014 13:29:04 +0000 |
| Subject: | Bug #66592 [Opn]: relative paths in PHP_NEW_EXTENSION soruces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184054@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66592&edit=1
ID: 66592
User updated by: investfund2007 at yandex dot ru
Reported by: investfund2007 at yandex dot ru
Summary: relative paths in PHP_NEW_EXTENSION soruces
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: MacOsX 10.9.1
-PHP Version: Irrelevant
+PHP Version: 5.3.28
Block user comment: N
Private report: N
New Comment:
Added version of php
Previous Comments:
------------------------------------------------------------------------
[2014-01-28 09:15:22] investfund2007 at yandex dot ru
Description:
------------
I'm developing php extension and I need to include some cpp sources outside php dir.
...
PHP_NEW_EXTENSION(module,file1.cpp ../../../Common/file2.cpp ../../../Common/file3.cpp, $ext_shared)
...
After running ./configure Makefile contains
...
shared_objects_module = file1.lo .lo .lo
...
I think the bug is somewhere inside acinclude.m4 in function PHP_ADD_SOURCES_X
Test script:
---------------
PHP_ARG_ENABLE(test, test,
[ --enable-test ])
if test "$PHP_TEST" != "no"; then
PHP_NEW_EXTENSION(test, file1.cpp ../../../Common/file2.cpp ../../../Common/file3.cpp,
$ext_shared)
AC_DEFINE(HAVE_TEST, 1, [Whether you have test])
fi
Expected result:
----------------
Makefile contains
...
shared_objects_module = file1.lo ../../../Common/file2.lo ../../../Common/file3.lo
...
Actual result:
--------------
shared_objects_module = file1.lo .lo .lo
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66592&edit=1