Commits

shl...@7081e830-ea04-0410-ae62-fb6148e2d9db  committed 8975047

Got everything to work - eperl now builds.

  • Participants
  • Parent commits af32aa8
  • Branches conversion-to-cmake

Comments (0)

Files changed (1)

File src/wml_backend/p3_eperl/CMakeLists.txt

     )    
 ENDMACRO(GET_PERL_CONFIG)
 
-SET (PERL_CONFIGS archlib libs usedl ccflags optimize)
+SET (PERL_CONFIGS archlib libs usedl ccflags optimize ccdlflags ldflags)
 FOREACH (cfg ${PERL_CONFIGS})
     GET_PERL_CONFIG(${cfg})
 ENDFOREACH(cfg)
 )
 
 IF(perl_usedl STREQUAL "define")
-    SET (perl_dla "${perl_archlib}/auto/DynaLoader/DynaLoader.a")
+    # TODO : Temporary workaround for perl-5.10.0
+    # SET (perl_dla "${perl_archlib}/auto/DynaLoader/DynaLoader.a")
+    SET (perl_dla "")
     SET (HAVE_PERL_DYNALOADER 1)
 ELSE(perl_usedl STREQUAL "define")
     SET (perl_dla "")
     eperl_version.c
 )
 
-ADD_EXECUTABLE(eperl
+SET(EXE "eperl")
+ADD_EXECUTABLE(${EXE}
     ${SOURCES}
 )
 
     PROPERTIES COMPILE_FLAGS "${perl_optimize} ${perl_ccflags} -I${perl_archlib}/CORE -I."
 )
 
+SET_TARGET_PROPERTIES(${EXE}
+    PROPERTIES LINK_FLAGS "${perl_ccdlflags} ${perl_ldflaags} -L${perl_archlib}/CORE ${perl_dla} -lperl ${perl_libs}"
+)
+
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config_ac.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config_ac.h)
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config_sc.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config_sc.h)