packages: new package libsml
Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@29802 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
13
libs/libsml/patches/010-no-examples-tests.patch
Normal file
13
libs/libsml/patches/010-no-examples-tests.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
all:
|
||||
@$(MAKE) -C sml
|
||||
- @$(MAKE) -C examples
|
||||
- @$(MAKE) -C test
|
||||
+# @$(MAKE) -C examples
|
||||
+# @$(MAKE) -C test
|
||||
|
||||
.PHONY: clean
|
||||
clean :
|
11
libs/libsml/patches/020-ldflags.patch
Normal file
11
libs/libsml/patches/020-ldflags.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/sml/Makefile
|
||||
+++ b/sml/Makefile
|
||||
@@ -54,7 +54,7 @@ libsml: $(ST_LIB) $(OBJ_LIB)
|
||||
endif
|
||||
|
||||
$(DYN_LIB): $(OBJS)
|
||||
- $(LD) $(LIBS) -shared -soname $(SONAME) -o $@ $^
|
||||
+ $(LD) $(LDFLAGS) $(LIBS) -shared -soname $(SONAME) -o $@ $^
|
||||
|
||||
$(OBJ_LIB): $(OBJS)
|
||||
$(LD) -r -o $@ $^
|
8
libs/libsml/patches/030-cross-compile.patch
Normal file
8
libs/libsml/patches/030-cross-compile.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- a/sml/Makefile
|
||||
+++ b/sml/Makefile
|
||||
@@ -1,4 +1,4 @@
|
||||
-UNAME := $(shell uname)
|
||||
+UNAME := Linux
|
||||
CFLAGS += -I./include/ -fPIC -g -Wall
|
||||
|
||||
# Available Flags:
|
Reference in New Issue
Block a user