-
March 17th, 2014, 09:48 AM
#1
Makefile options to compile for 64 bit
Hi All,
I have called a C function inside C++ code. The .so which gets created is a 32 bit while I am looking for 64 bit . What all options should be mentioned in the Make file to eventually compile and get shared object of ELF64 CLASS ?
Excerpts from Makefile
-----------------------------
CC = gcc
CXX = g++
CPPFLAGS = -I. -I$(S) -DHAVE_CONFIG_H
CFLAGS = -O2 -pipe
CXXFLAGS = -g -O2
LDFLAGS =
LIBS = -lsocket -lnsl
RM = rm -f
CP = cp
RMDIR = rmdir
SHTOOL = $(S)/shtool
LIBTOOL = $(C)/libtool
TRUE = true
POD2MAN = pod2man
PERL = /usr/bin/perl
PHP = NA
PG_CONFIG = /usr/bin/pg_config
-------------------------------------------
-
March 25th, 2014, 04:48 PM
#2
Re: Makefile options to compile for 64 bit
-m64 should be sufficient if you have a multilib (that contains standard libs in both 32/64 bits) gcc installed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|