You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
895 B

  1. --- a/makedefs 2016-01-28 12:30:14.444082390 -0500
  2. +++ b/makedefs 2016-01-28 13:44:02.092006512 -0500
  3. @@ -193,7 +193,7 @@ error() {
  4. case $# in
  5. # Officially supported usage.
  6. - 0) SYSTEM=`(uname -s) 2>/dev/null`
  7. + 0) SYSTEM="OpenWRT"
  8. RELEASE=`(uname -r) 2>/dev/null`
  9. # No ${x%%y} support in Solaris 11 /bin/sh
  10. RELEASE_MAJOR=`expr "$RELEASE" : '\([0-9]*\)'` || exit 1
  11. @@ -207,6 +207,15 @@ case $# in
  12. esac
  13. case "$SYSTEM.$RELEASE" in
  14. + OpenWRT*) SYSTYPE=LINUX$RELEASE_MAJOR
  15. + SYSLIBS="$SYSLIBS -ldl"
  16. + : ${SHLIB_SUFFIX=.so}
  17. + : ${SHLIB_CFLAGS=-fPIC}
  18. + : ${SHLIB_LD="${CC-gcc} -shared"' -Wl,-soname,${LIB}'}
  19. + : ${SHLIB_RPATH='-Wl,--enable-new-dtags -Wl,-rpath,${SHLIB_DIR}'}
  20. + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
  21. + : ${PLUGIN_LD="${CC-gcc} -shared"}
  22. + ;;
  23. SCO_SV.3.2) SYSTYPE=SCO5
  24. # Use the native compiler by default
  25. : ${CC="/usr/bin/cc -b elf"}