timmerk / mfcuk

Automatically exported from code.google.com/p/mfcuk
GNU General Public License v2.0
0 stars 0 forks source link

compile at 32 bits linux #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, just as tip

To compile it with Linux 32 bits I took the following approach

I passed to configure the following flags:

I commented the following lines at configure.ac

AC_FUNC_MALLOC
AC_FUNC_REALLOC

both functions are specific for 64 bits

./configure CFLAGS="-m32" LDFLAGS="-m32"

can we do this check automatically and just add the two AC_FUNC_*LLOC 
directives if our target is 64 bits?

Original issue reported on code.google.com by pelas...@gmail.com on 26 Sep 2011 at 10:22

GoogleCodeExporter commented 9 years ago
Where did you see these functions are for 64 bits only?
According to autoconf manual, there is no point to use it under 32bits:
http://www.gnu.org/s/hello/manual/autoconf/Particular-Functions.html

Could you explain your point please?

Thx.

Original comment by romu...@libnfc.org on 17 Oct 2011 at 3:23

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 1 Mar 2012 at 10:26