diff options
Diffstat (limited to 'recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch')
-rw-r--r-- | recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch b/recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch new file mode 100644 index 0000000..d004b78 --- /dev/null +++ b/recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | libmcc: build with versioned soname | ||
2 | |||
3 | This adds a versioned soname to the shared library during linking. | ||
4 | Otherwise an application linked with '-lmcc' needs libmcc.so for execution, | ||
5 | having libmcc.so.1 would not be enough. | ||
6 | |||
7 | Signed-off-by: Max Krummenacher <max.oss.09@gmail.com> | ||
8 | --- a/Makefile 2015-01-07 17:09:13.657675270 +0100 | ||
9 | +++ b/Makefile 2015-01-07 17:21:19.457545709 +0100 | ||
10 | @@ -8,7 +8,7 @@ | ||
11 | $(AR) rcs $@ $< | ||
12 | |||
13 | build/libmcc.so.1.0: build/libmcc.o | ||
14 | - $(CC) -shared -o $@ $< | ||
15 | + $(CC) -shared -Wl,-soname,libmcc.so.1 -o $@ $< -lc | ||
16 | |||
17 | install: | ||
18 | mkdir -p $(DESTDIR)/usr/include $(DESTDIR)/usr/lib | ||