Skip to content

Commit 61ac64b

Browse files
committed
Allow only shared O+ build
1 parent 4c55176 commit 61ac64b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ZendAccelerator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
#ifndef ZEND_EXT_API
6868
# if WIN32|WINNT
6969
# define ZEND_EXT_API __declspec(dllexport)
70+
# elif defined(__GNUC__) && __GNUC__ >= 4
71+
# define ZEND_EXT_API __attribute__ ((visibility("default")))
7072
# else
7173
# define ZEND_EXT_API
7274
# endif

config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ int main() {
341341
shared_alloc_mmap.c \
342342
shared_alloc_posix.c \
343343
Optimizer/zend_optimizer.c,
344-
$ext_shared,,,,yes)
344+
shared,,,,yes)
345345

346346
PHP_ADD_BUILD_DIR([$ext_builddir/Optimizer], 1)
347347
fi

0 commit comments

Comments
 (0)