Skip to content

Commit

Permalink
bindings: perl: Do not link against libperl.
Browse files Browse the repository at this point in the history
As the binding is always running in context of perl, the
perl libraries are guaranteed to be in memory and we do not
have to take care of those.

This allows the perl bindings to be built against a different
version of perl as it will be finally run with (perl keeps on
installing the library in a versioned directory, hence on each
perl upgrade, a rebuild is needed in order to link against the
new location of the library).
  • Loading branch information
dominique.leuenberger@gmail.com committed Sep 7, 2013
1 parent 25cc320 commit 5077b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/perl/src/CMakeLists.txt
Expand Up @@ -12,7 +12,7 @@ set(Libproxy_LIB_SRCS Libproxy.c)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/perl/blib/arch/auto/Net)
add_library(PLlibproxy SHARED ${Libproxy_LIB_SRCS})

target_link_libraries(PLlibproxy ${PERL_LIBRARY} libproxy pthread)
target_link_libraries(PLlibproxy libproxy pthread)
set_target_properties(PLlibproxy PROPERTIES OUTPUT_NAME "Libproxy")
set_target_properties(PLlibproxy PROPERTIES PREFIX "")

Expand Down

0 comments on commit 5077b75

Please sign in to comment.