blob: 14dd4cdc5cded4f21802c37c4f34f421630b186a [file] [log] [blame]
Lorenz Brunf95909d2019-09-11 19:48:26 +02001Copyright 2020 The Monogon Project Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16From 780a94ddc5c50bded264bfc0dbfffdb4182cdc51 Mon Sep 17 00:00:00 2001
17From: Lorenz Brun <lorenz@nexantic.com>
18Date: Mon, 9 Sep 2019 15:56:42 +0200
19Subject: [PATCH] Fixes for static compilation
20
21---
22 include/xfs.h | 6 +++---
23 mkfs/Makefile | 2 +-
24 2 files changed, 4 insertions(+), 4 deletions(-)
25
26diff --git a/include/xfs.h b/include/xfs.h
27index f2f675df..73687a16 100644
28--- a/include/xfs.h
29+++ b/include/xfs.h
30@@ -6,7 +6,7 @@
31 #define __XFS_H__
32
33 #if defined(__linux__)
34-#include <xfs/linux.h>
35+#include "linux.h"
36 #else
37 # error unknown platform... have fun porting!
38 #endif
39@@ -34,7 +34,7 @@ extern int xfs_assert_largefile[sizeof(off_t)-8];
40 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
41 #endif
42
43-#include <xfs/xfs_types.h>
44-#include <xfs/xfs_fs.h>
45+#include "xfs_types.h"
46+#include "xfs_fs.h"
47
48 #endif /* __XFS_H__ */
49diff --git a/mkfs/Makefile b/mkfs/Makefile
50index 31482b08..57fb355d 100644
51--- a/mkfs/Makefile
52+++ b/mkfs/Makefile
53@@ -13,7 +13,7 @@ CFILES = proto.c xfs_mkfs.c
54 LLDLIBS += $(LIBXFS) $(LIBXCMD) $(LIBFROG) $(LIBRT) $(LIBPTHREAD) $(LIBBLKID) \
55 $(LIBUUID)
56 LTDEPENDENCIES += $(LIBXFS) $(LIBXCMD) $(LIBFROG)
57-LLDFLAGS = -static-libtool-libs
58+LLDFLAGS = -all-static
59
60 default: depend $(LTCOMMAND)
61
62--
632.20.1
64