diff options
| author | Davide Beatrici <git@davidebeatrici.dev> | 2021-04-09 19:09:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 10:09:10 -0700 |
| commit | c91bcb157c1fc605f310266667e732eb84e0be91 (patch) | |
| tree | 756a599c06c887f41094acd88281717bcbcdab8c /ports | |
| parent | 9ec62173162f494e4d63c260afe3d699893e23de (diff) | |
| download | vcpkg-c91bcb157c1fc605f310266667e732eb84e0be91.tar.gz vcpkg-c91bcb157c1fc605f310266667e732eb84e0be91.zip | |
[freeglut] Don't enforce x64 when the compiler is 64 bit (#16911)
* [freeglut] Don't enforce x64 when the compiler is 64 bit
This fixes compilation for ARM64.
* [freeglut] Update manifest
* Update ports/freeglut/CONTROL
* Update versions/f-/freeglut.json
* Update versions/baseline.json
* Update versions/baseline.json
* Update versions/f-/freeglut.json
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/freeglut/CONTROL | 3 | ||||
| -rwxr-xr-x | ports/freeglut/no_x64_enforcement.patch | 17 | ||||
| -rwxr-xr-x[-rw-r--r--] | ports/freeglut/portfile.cmake | 1 |
3 files changed, 20 insertions, 1 deletions
diff --git a/ports/freeglut/CONTROL b/ports/freeglut/CONTROL index 452615768..f4abd33bd 100644 --- a/ports/freeglut/CONTROL +++ b/ports/freeglut/CONTROL @@ -1,4 +1,5 @@ Source: freeglut -Version: 3.2.1-4 +Version: 3.2.1 +Port-Version: 5 Homepage: https://sourceforge.net/projects/freeglut/ Description: Open source implementation of GLUT with source and binary backwards compatibility. diff --git a/ports/freeglut/no_x64_enforcement.patch b/ports/freeglut/no_x64_enforcement.patch new file mode 100755 index 000000000..d98332366 --- /dev/null +++ b/ports/freeglut/no_x64_enforcement.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt.orig b/CMakeLists.txt +index 6f403af..d1ba4e7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -418,12 +418,6 @@ IF(WIN32) + IF(FREEGLUT_REPLACE_GLUT) + SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME}) + ENDIF() +- # need to set machine:x64 for linker, at least for VC10, and +- # doesn't hurt for older compilers: +- # http://public.kitware.com/Bug/view.php?id=11240#c22768 +- IF (CMAKE_CL_64) +- SET_TARGET_PROPERTIES(freeglut_static PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64") +- ENDIF() + ENDIF() + ELSE() + # on UNIX we need to make sure: diff --git a/ports/freeglut/portfile.cmake b/ports/freeglut/portfile.cmake index 4ec2382ae..8a872e6b6 100644..100755 --- a/ports/freeglut/portfile.cmake +++ b/ports/freeglut/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_from_sourceforge( macOS_Xquartz.patch gcc10.patch fix-debug-macro.patch + no_x64_enforcement.patch ) if(NOT VCPKG_TARGET_IS_WINDOWS) |
