-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
SRC_NAME = srelay-0.4.8p3 | ||
THISDIR = $(shell pwd) | ||
|
||
all: extract_test config_test | ||
$(MAKE) -j$(HOST_NCPU) -C $(SRC_NAME) | ||
|
||
extract_test: | ||
( if [ ! -d $(SRC_NAME) ]; then \ | ||
tar xf $(SRC_NAME).tar.gz; \ | ||
patch -p1 -d $(SRC_NAME) < ./fix-cross-compile.patch ; \ | ||
fi ) | ||
|
||
config_test: | ||
( if [ -f ./config_done ]; then \ | ||
echo "the same configuration"; \ | ||
else \ | ||
make configure && touch config_done; \ | ||
fi ) | ||
|
||
configure: | ||
( cd $(SRC_NAME) ; \ | ||
./configure \ | ||
--prefix=/usr \ | ||
--host=$(HOST_TARGET) \ | ||
--build=$(HOST_BUILD) ; \ | ||
) | ||
|
||
clean: | ||
if [ -f $(SRC_NAME)/Makefile ] ; then \ | ||
$(MAKE) -C $(SRC_NAME) distclean ; \ | ||
fi ; \ | ||
rm -f config_done | ||
|
||
romfs: | ||
$(ROMFSINST) -p +x $(THISDIR)/$(SRC_NAME)/srelay /usr/bin/srelay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- a/configure 2018-08-05 13:53:26.000000000 +0800 | ||
+++ b/configure 2019-05-08 18:06:25.654605000 +0800 | ||
@@ -3998,40 +3998,10 @@ $as_echo_n "checking whether enabling th | ||
elif test "$OS" = "SOLARIS"; then | ||
LDFLAGS="$LDFLAGS -lpthread" | ||
fi | ||
- if test "$cross_compiling" = yes; then : | ||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
-as_fn_error $? "cannot run test program while cross compiling | ||
-See \`config.log' for more details" "$LINENO" 5; } | ||
-else | ||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
-/* end confdefs.h. */ | ||
|
||
-#include <pthread.h> | ||
-void | ||
-init_routine() | ||
-{ | ||
- return; | ||
-} | ||
-main() | ||
-{ | ||
- pthread_once_t once_control = PTHREAD_ONCE_INIT; | ||
- pthread_once(&once_control, &init_routine); | ||
- return(0); | ||
-} | ||
-_ACEOF | ||
-if ac_fn_c_try_run "$LINENO"; then : | ||
$as_echo "#define USE_THREAD 1" >>confdefs.h | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
-else | ||
- CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
-$as_echo "no" >&6; } | ||
- | ||
-fi | ||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
- conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
-fi | ||
|
||
fi | ||
fi |
Binary file not shown.