• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/beecrypt/0003-build-system.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Fix build with BR2_ENABLE_DEBUG=yes, no need for expert mode anymore
2
​
3
Otherwise configure issues this error message:
4
configure: error: --enable-debug cannot be used in conjunction with --enable-expert-mode
5
​
6
Downloaded from Gentoo:
7
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch?revision=1.2&view=markup
8
​
9
This patch also removes the hard-coded CFLAGS provided by beecrypt in favour
10
of the CFLAGS provided by buildroot.
11
​
12
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
13
​
14
--- beecrypt-4.2.1/configure.ac
15
+++ beecrypt-4.2.1/configure.ac
16
@@ -11,7 +11,7 @@
17
 
18
 # Checks for package options
19
 AC_ARG_ENABLE(expert-mode, [  --enable-expert-mode      follow user-defined CFLAGS settings [[default=no]]],[
20
-  ac_enable_expert_mode=yes
21
+  ac_enable_expert_mode=$enableval
22
   ],[
23
   if test "X$CFLAGS" != "X"; then
24
     echo "enabling expert mode"
25
@@ -25,7 +25,7 @@
26
   if test "$ac_enable_expert_mode" = yes; then
27
     AC_MSG_ERROR([--enable-debug cannot be used in conjunction with --enable-expert-mode])
28
   fi
29
-  ac_enable_debug=yes
30
+  ac_enable_debug=$enableval
31
   ],[
32
   ac_enable_debug=no
33
   ])
34
@@ -456,7 +456,7 @@
35
       ac_cv_python_include="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()'`"
36
     ])
37
     AC_CACHE_CHECK([where to install python libraries], ac_cv_python_libdir, [
38
-      ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`
39
+      ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, 0)'`
40
     ])
41
   fi
42
 fi
43
--- beecrypt-4.2.1/acinclude.m4
44
+++ beecrypt-4.2.1/acinclude.m4
45
@@ -498,15 +498,6 @@ AC_DEFUN([BEE_GNU_CC],[
46
     AC_SUBST(OPENMP_LIBS,"-lgomp")
47
   fi
48
   case $bc_target_arch in
49
-  x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona)
50
-    CC="$CC -m64"
51
-    ;;
52
-  i[[3456]]86 | \
53
-  pentium* | \
54
-  athlon*)
55
-    CC="$CC -m32"
56
-    CCAS="$CCAS -m32"
57
-    ;;
58
   ia64)
59
     case $target_os in
60
     # HP/UX on Itanium needs to be told that a long is 64-bit!
61
@@ -525,17 +516,8 @@ AC_DEFUN([BEE_GNU_CC],[
62
     aix*)
63
       CC="$CC -maix64"
64
       ;;
65
-    linux*)
66
-      CC="$CC -m64"
67
-      ;;
68
     esac
69
     ;;
70
-  sparc | sparcv8*)
71
-    CC="$CC -m32"
72
-    ;;
73
-  sparc64 | sparcv9*)
74
-    CC="$CC -m64"
75
-    ;;
76
   esac
77
   # Certain platforms needs special flags for multi-threaded code
78
   if test "$ac_enable_threads" = yes; then
79
@@ -646,14 +646,6 @@ dnl  BEE_GNU_CXX
80
 AC_DEFUN([BEE_GNU_CXX],[
81
   AC_REQUIRE([AC_PROG_CXX])
82
   case $bc_target_arch in
83
-  x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)
84
-    CXX="$CXX -m64"
85
-    ;;
86
-  i[[3456]]86 | \
87
-  pentium* | \
88
-  athlon*)
89
-    CXX="$CXX -m32"
90
-    ;;
91
   ia64)
92
     case $target_os in
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.