-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpc: bump + enable building libraries on MSVC
- Loading branch information
Showing
8 changed files
with
128 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
sources: | ||
"1.2.1": | ||
url: "https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz" | ||
sha256: "17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459" | ||
"1.2.0": | ||
url: https://ftp.gnu.org/gnu/mpc/mpc-1.2.0.tar.gz | ||
sha256: e90f2d99553a9c19911abdb4305bf8217106a957e3994436428572c8dfe8fda6 | ||
url: "https://ftp.gnu.org/gnu/mpc/mpc-1.2.0.tar.gz" | ||
sha256: "e90f2d99553a9c19911abdb4305bf8217106a957e3994436428572c8dfe8fda6" | ||
"1.1.0": | ||
url: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz | ||
sha256: 6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e | ||
url: "https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz" | ||
sha256: "6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e" | ||
patches: | ||
"1.2.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/1.2.0-0001-msvc-add-mpfr-libpath+shared.patch" | ||
"1.2.0": | ||
- patch_file: "patches/1.2.0-0001-asin-missing-limits.patch" | ||
- patch_file: "patches/1.2.0-0001-msvc-add-mpfr-libpath+shared.patch" | ||
base_path: "source_subfolder" | ||
- patch_file: "patches/1.2.0-0002-asin-missing-limits.patch" | ||
base_path: "source_subfolder" | ||
"1.1.0": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/1.1.0-0001-msvc-add-mpfr-libpath+shared.patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
recipes/mpc/all/patches/1.1.0-0001-msvc-add-mpfr-libpath+shared.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- Makefile.vc | ||
+++ Makefile.vc | ||
@@ -267,7 +267,7 @@ | ||
# | ||
|
||
$(LIBRARY): $(DIRMPC)config.h $(CPPOBJECTS) | ||
- $(LINKER) /out:$@ $(CPPLINKOBJECTS) /LIBPATH:"$(GMPDIR)\lib" libmpfr.lib libgmp.lib $(LIBS_LOGGING) | ||
+ $(LINKER) /out:$@ $(CPPLINKOBJECTS) /LIBPATH:"$(MPFR)\lib" /LIBPATH:"$(GMPDIR)\lib" mpfr.lib gmp.lib $(LIBS_LOGGING) | ||
|
||
$(DIRMPC)config.h : | ||
echo #define PACKAGE_STRING "mpc" >$(DIRMPC)\config.h | ||
--- src/mpc.h | ||
+++ src/mpc.h | ||
@@ -109,7 +109,7 @@ | ||
/* Support for WINDOWS DLL, see | ||
http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-November/000990.html; | ||
when building the DLL, export symbols, otherwise behave as GMP */ | ||
-#if defined (__MPC_LIBRARY_BUILD) && __GMP_LIBGMP_DLL | ||
-#define __MPC_DECLSPEC __GMP_DECLSPEC_EXPORT | ||
+#if defined (__MPC_LIBRARY_BUILD) && defined(_WIN32) && defined(MPC_SHARED) | ||
+#define __MPC_DECLSPEC __declspec(dllexport) | ||
#else | ||
#define __MPC_DECLSPEC __GMP_DECLSPEC |
23 changes: 23 additions & 0 deletions
23
recipes/mpc/all/patches/1.2.0-0001-msvc-add-mpfr-libpath+shared.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- Makefile.vc | ||
+++ Makefile.vc | ||
@@ -267,7 +267,7 @@ | ||
# | ||
|
||
$(LIBRARY): $(DIRMPC)config.h $(CPPOBJECTS) | ||
- $(LINKER) /out:$@ $(CPPLINKOBJECTS) /LIBPATH:"$(GMPDIR)\lib" libmpfr.lib libgmp.lib $(LIBS_LOGGING) | ||
+ $(LINKER) /out:$@ $(CPPLINKOBJECTS) /LIBPATH:"$(MPFR)\lib" /LIBPATH:"$(GMPDIR)\lib" mpfr.lib gmp.lib $(LIBS_LOGGING) | ||
|
||
$(DIRMPC)config.h : | ||
echo #define PACKAGE_STRING "mpc" >$(DIRMPC)\config.h | ||
--- src/mpc.h | ||
+++ src/mpc.h | ||
@@ -111,7 +111,7 @@ | ||
/* Support for WINDOWS DLL, see | ||
http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-November/000990.html; | ||
when building the DLL, export symbols, otherwise behave as GMP */ | ||
-#if defined (__MPC_LIBRARY_BUILD) && __GMP_LIBGMP_DLL | ||
-#define __MPC_DECLSPEC __GMP_DECLSPEC_EXPORT | ||
+#if defined (__MPC_LIBRARY_BUILD) && defined(_WIN32) && defined(MPC_SHARED) | ||
+#define __MPC_DECLSPEC __declspec(dllexport) | ||
#else | ||
#define __MPC_DECLSPEC __GMP_DECLSPEC |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pes/mpc/all/test_package/test_package.cpp → recipes/mpc/all/test_package/test_package.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"1.2.1": | ||
folder: all | ||
"1.2.0": | ||
folder: all | ||
"1.1.0": | ||
|