Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
pybuild: Disable debugging flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Chi Hsuan committed May 18, 2017
1 parent f53b169 commit f865a2f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mk/bzip2/ndk-issue399.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- bzip2-1.0.6/Makefile.orig 2017-05-18 14:37:41.598810141 +0800
+++ bzip2-1.0.6/Makefile 2017-05-18 14:37:51.941841315 +0800
@@ -21,7 +21,7 @@
LDFLAGS?=

BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS+=-Wall -Winline -O2 -g $(BIGFILES)
+CFLAGS+=-Wall -Winline -O2 $(BIGFILES)

# Where you want it installed when you do 'make install'
PREFIX?=/usr/local
13 changes: 13 additions & 0 deletions mk/python/ndk-issue399.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index e065ce554b..de794d9faa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1477,7 +1477,7 @@ then
OPT="-g -O0 -Wall"
fi
else
- OPT="-g $WRAP -O3 -Wall"
+ OPT="$WRAP -O3 -Wall"
fi
;;
*)
1 change: 1 addition & 0 deletions pybuild/packages/bzip2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class BZip2(Package):
source = URLSource('http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz')
patches = [
LocalPatch('makefiles'),
LocalPatch('ndk-issue399'),
]

def __init__(self):
Expand Down
1 change: 1 addition & 0 deletions pybuild/packages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Python(Package):
LocalPatch('cppflags'),
LocalPatch('ldflags-last'),
LocalPatch('skip-build'),
LocalPatch('ndk-issue399'),
]

def __init__(self):
Expand Down

0 comments on commit f865a2f

Please sign in to comment.