File: build-on-arm.patch

package info (click to toggle)
cluster3 1.59%2Bds-3
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 5,624 kB
  • sloc: ansic: 9,948; python: 2,018; perl: 1,566; makefile: 132; sh: 27
file content (18 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Stefano Rivera <stefanor@debian.org>
Description: let pacakage build on armhf
--- a/src/Makefile.PL
+++ b/src/Makefile.PL
@@ -2,10 +2,10 @@
 use Config;
 use POSIX;

-# Check if this is a 64 bit machine
+# Check if this is an arch where we need position independent code
 my $CCFLAGS = '';
 my $machine = (POSIX::uname())[4];
-if ($machine =~ /64/) {
+if ($machine =~ /64|arm/) {
         $CCFLAGS = '-fPIC';
 }