[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6416] use fPIC flage when compiling on 64 bit OS
From: |
Eric |
Subject: |
[paparazzi-commits] [6416] use fPIC flage when compiling on 64 bit OS |
Date: |
Fri, 19 Nov 2010 06:06:08 +0000 |
Revision: 6416
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6416
Author: lamestllama
Date: 2010-11-19 06:06:08 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
use fPIC flage when compiling on 64 bit OS
Modified Paths:
--------------
paparazzi-software/trunk/sw/ground_segment/tmtc/Makefile
Modified: paparazzi-software/trunk/sw/ground_segment/tmtc/Makefile
===================================================================
--- paparazzi-software/trunk/sw/ground_segment/tmtc/Makefile 2010-11-19
05:37:36 UTC (rev 6415)
+++ paparazzi-software/trunk/sw/ground_segment/tmtc/Makefile 2010-11-19
06:06:08 UTC (rev 6416)
@@ -23,6 +23,14 @@
# Quiet
Q=@
+LBITS := $(shell getconf LONG_BIT)
+ifeq ($(LBITS),64)
+ FPIC = -fPIC
+else
+ FPIC =
+endif
+
+
include ../../../conf/Makefile.local
CONF = ../../../conf
VAR = ../../../var
@@ -130,10 +138,10 @@
CC = gcc
-GLIB_CFLAGS = -Wall `pkg-config glib-2.0 --cflags`
-GLIB_LDFLAGS = `pkg-config glib-2.0 --libs` -lglibivy -lpcre
-GTK_CFLAGS = -Wall `pkg-config gtk+-2.0 --cflags`
-GTK_LDFLAGS = `pkg-config gtk+-2.0 --libs` -lglibivy -lpcre
+GLIB_CFLAGS = -Wall `pkg-config glib-2.0 --cflags` $(FPIC)
+GLIB_LDFLAGS = `pkg-config glib-2.0 --libs` -lglibivy -lpcre $(FPIC)
+GTK_CFLAGS = -Wall `pkg-config gtk+-2.0 --cflags` $(FPIC)
+GTK_LDFLAGS = `pkg-config gtk+-2.0 --libs` -lglibivy -lpcre $(FPIC)
gpsd2ivy: gpsd2ivy.c
$(CC) $(GLIB_CFLAGS) -o $@ $< $(GLIB_LDFLAGS) -lgps
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6416] use fPIC flage when compiling on 64 bit OS,
Eric <=