shared extension linking

From: Date: Mon, 19 Aug 2002 13:18:40 +0000
Subject: shared extension linking
Groups: php.dev 
Request: Send a blank email to php-dev+get-87070@lists.php.net to get a copy of this message
Hello, I need to link some external libs statically into a shared php extension. If I compile this extension statically with php, all external libs also linked statically in, the extension can be used. I can't figure out how I have to modify the many configuration files to get the additional libs statically linked in if the extension is build seperately. I just insert '-L/pathtolibs -llibnames...' into the INCLUDES-var of config_vars.mk. Bad way, I know... But if I want the extension to be compiled as shared object the additional libs are not linked statically in. By the way, if I use phpize to prepare the extension, the proper php prefix isn't right set. I manually have to replace it in config_vars.mk. Unfortunately the self-contained-extension-readme doesn't cover this issue. Please help... Regards Ron

« previous php.dev (#87070) next »