1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 01:43:12 +02:00

Attempt to fix issue with modules having their link libraries in the wrong order.

This commit is contained in:
Naram Qashat
2011-12-03 19:17:41 -05:00
parent 620c08bd7a
commit c80e7844b7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ macro(calculate_libraries SRC SKIP SRC_LDFLAGS EXTRA_DEPENDS)
endforeach(LIBRARY_PATH)
# Iterate through libraries and add them to the linker flags
foreach(LIBRARY ${LIBRARIES})
set(THIS_LDFLAGS "${THIS_LDFLAGS} -l${LIBRARY}")
append_to_list(EXTRA_DEPENDENCIES "${LIBRARY}")
endforeach(LIBRARY)
set(${SRC_LDFLAGS} "${THIS_LDFLAGS}")
set(${EXTRA_DEPENDS} "${EXTRA_DEPENDENCIES}")
+2
View File
@@ -85,6 +85,8 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS})
if(WIN32)
target_link_libraries(${SO} ${PROGRAM_NAME} wsock32 Ws2_32 ${WIN32_MEMORY} ${TEMP_DEPENDENCIES})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
else(WIN32)
target_link_libraries(${SO} ${PROGRAM_NAME} ${TEMP_DEPENDENCIES})
endif(WIN32)
# Set the module to be installed to the module directory under the data directory
install(TARGETS ${SO}