[mprf] add missing symbol (#2226)

* [mprf] create printf

* Update CMakeLists.txt

* [mpfr:portile] copy file
This commit is contained in:
xoviat 2017-11-20 17:10:00 -06:00 committed by Robert Schumacher
parent ea6783f9ba
commit 1a6d0f5611
4 changed files with 10 additions and 2 deletions

View File

@ -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"
)
)

View File

@ -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

6
ports/mpfr/gmp_printf.c Normal file
View File

@ -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);
}

View File

@ -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}