diff options
| author | xoviat <xoviat@users.noreply.github.com> | 2017-11-20 17:10:00 -0600 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-11-20 15:10:00 -0800 |
| commit | 1a6d0f5611882618f9179898448ca56770ff2ab0 (patch) | |
| tree | 2626fc79e93a6fb3831af0297c15ff7f21c89a13 | |
| parent | ea6783f9ba878a58b43d8728fd816413f708eb04 (diff) | |
| download | vcpkg-1a6d0f5611882618f9179898448ca56770ff2ab0.tar.gz vcpkg-1a6d0f5611882618f9179898448ca56770ff2ab0.zip | |
[mprf] add missing symbol (#2226)
* [mprf] create printf
* Update CMakeLists.txt
* [mpfr:portile] copy file
| -rw-r--r-- | ports/mpfr/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | ports/mpfr/CONTROL | 2 | ||||
| -rw-r--r-- | ports/mpfr/gmp_printf.c | 6 | ||||
| -rw-r--r-- | ports/mpfr/portfile.cmake | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/ports/mpfr/CMakeLists.txt b/ports/mpfr/CMakeLists.txt index 8a989ff28..3fb121b76 100644 --- a/ports/mpfr/CMakeLists.txt +++ b/ports/mpfr/CMakeLists.txt @@ -11,6 +11,7 @@ set(GMP_INCLUDE_DIRS ${GMP_INCLUDE_DIR}) # Sources set(SRCS + src/gmp_printf.c src/mpfr.h src/mpf2mpfr.h src/mpfr-gmp.h @@ -272,4 +273,4 @@ install( install( FILES src/mpfr.h DESTINATION "include" -)
\ No newline at end of file +) diff --git a/ports/mpfr/CONTROL b/ports/mpfr/CONTROL index bec54417d..8482ed8eb 100644 --- a/ports/mpfr/CONTROL +++ b/ports/mpfr/CONTROL @@ -1,4 +1,4 @@ Source: mpfr -Version: 3.1.6 +Version: 3.1.6-1 Description: The MPFR library is a C library for multiple-precision floating-point computations with correct rounding Build-Depends: mpir diff --git a/ports/mpfr/gmp_printf.c b/ports/mpfr/gmp_printf.c new file mode 100644 index 000000000..1ccb94c0c --- /dev/null +++ b/ports/mpfr/gmp_printf.c @@ -0,0 +1,6 @@ +#include <stdio.h> +#include <stdarg.h> + +extern int __gmpfr_fprintf(const char *fmt, va_list argp) { + return fprintf(stderr, fmt, argp); +} diff --git a/ports/mpfr/portfile.cmake b/ports/mpfr/portfile.cmake index b71aa0505..0e82d2623 100644 --- a/ports/mpfr/portfile.cmake +++ b/ports/mpfr/portfile.cmake @@ -8,6 +8,7 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive(${ARCHIVE}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/gmp_printf.c DESTINATION ${SOURCE_PATH}/src) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} |
