print/texlive/base: Make it build with clang 6.
OK naddy@, thanks.
This commit is contained in:
parent
2e2e490833
commit
4152e32f2f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.98 2018/02/21 21:00:27 kili Exp $
|
||||
# $OpenBSD: Makefile,v 1.99 2018/04/10 20:43:51 edd Exp $
|
||||
|
||||
COMMENT = base binaries for TeXLive typesetting distribution
|
||||
|
||||
@ -55,10 +55,6 @@ CONFIGURE_STYLE = gnu
|
||||
CPPFLAGS = -I${X11BASE}/include \
|
||||
-I${LOCALBASE}/include
|
||||
|
||||
# Not yet. Some parts (like luatex) will need patches to build with
|
||||
# this:
|
||||
# CXXFLAGS += -std=c++11
|
||||
|
||||
LDFLAGS = -L${LOCALBASE}/lib \
|
||||
-L${X11BASE}/lib
|
||||
|
||||
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-texk_web2c_luatexdir_image_pdftoepdf_w,v 1.3 2018/04/10 20:43:51 edd Exp $
|
||||
|
||||
Fix C++11 build problem in generated C++ code.
|
||||
http://www.tug.org/pipermail/tex-live/2017-June/040365.html
|
||||
|
||||
Index: texk/web2c/luatexdir/image/pdftoepdf.w
|
||||
--- texk/web2c/luatexdir/image/pdftoepdf.w.orig
|
||||
+++ texk/web2c/luatexdir/image/pdftoepdf.w
|
||||
@@ -71,7 +71,7 @@ static char *get_file_checksum(const char *a, file_err
|
||||
ck = (char *) malloc(PDF_CHECKSUM_SIZE);
|
||||
if (ck == NULL)
|
||||
formatted_error("pdf inclusion","out of memory while processing '%s'", a);
|
||||
- snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,(uint64_t) mtime);
|
||||
+ snprintf(ck, PDF_CHECKSUM_SIZE, "%"@= @>PRIu64@= @>"_%"@= @>PRIu64, (uint64_t) size,(uint64_t) mtime);
|
||||
} else {
|
||||
switch (fe) {
|
||||
case FE_FAIL:
|
Loading…
x
Reference in New Issue
Block a user