diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-20 19:49:19 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-20 19:49:19 +0100 |
commit | 6c173e43fc3902e5dc4be1ed90aac7a66228628e (patch) | |
tree | 117043e76ca47d81666ee64193389d0e894bd6cf | |
parent | f778f620480f476fd4a61fa43cd3349f95afaf48 (diff) | |
download | egawk-6c173e43fc3902e5dc4be1ed90aac7a66228628e.tar.gz egawk-6c173e43fc3902e5dc4be1ed90aac7a66228628e.tar.bz2 egawk-6c173e43fc3902e5dc4be1ed90aac7a66228628e.zip |
Added instructions on building with MinGW on Ubuntu 12.04.
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | cmake/package.cmake | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76387fb2..0714a02e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,10 @@ endif () include_directories(${CMAKE_SOURCE_DIR}) if(WIN32 OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") + # This is enough to build with MinGW cross-compiler on OpenSuSE 12.2. + # On Ubuntu 12.04 patches to gawk's source code are needed: + # - insert #include <windows.h> at the top of awk.h + # - remove function execvp from pc/gawkmisc.pc DefineConfigHValue(HAVE_WCTYPE_T 1) DefineConfigHValue(WEOF EOF) DefineConfigHValue(HAVE_USLEEP 1) diff --git a/cmake/package.cmake b/cmake/package.cmake index ffea3f04..7bbb1373 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -26,7 +26,7 @@ IF (WIN32) SET(CPACK_GENERATOR "NSIS") - set(CPACK_NSIS_INSTALL_ROOT "C:") + set(CPACK_NSIS_INSTALL_ROOT "C:/Programs") ELSE() SET(CPACK_GENERATOR "TGZ") SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) |