On 2 December 2013 12:56, Michal Kubecek <m...@mk-sys.cz> wrote:
> On Thu, Nov 28, 2013 at 05:59:41PM +0000, Dmitrijs Ledkovs wrote:
>> --- a/src/jrd/common.h
>> +++ b/src/jrd/common.h
>> @@ -192,6 +192,10 @@
>>  #define RISC_ALIGNMENT
>>  #endif /* alpha */
>>
>> +#ifdef ARM64
>> +#define IMPLEMENTATION  isc_info_db_impl_linux_arm64 /* 84  */
>> +#endif /* ARM64 */
>> +
>>  #endif /* LINUX */
>>
>>
>
> Guys working on OpenSuSE sent me a patch similar to yours but theirs
> tests for __aarch64__ rather than ARM64. Is the macro for recognizing
> the platform distribution (or compiler) dependent?
>

-DARM64 is defined in the prefix_arm64 makefile similar to how "ARM" is defined.
In these context I understood these as "FireBird ARCHITECTURE name",
rather than a compiler provided macro.
__aarch64__ is provided by all compilers as far as i know on arm64.

At the moment ARM64 means: __aarch64__ & LittleEndian.
Last part is important, since ARM64 is biEndian and can be
compiled/run in either Little or Big endian mode, and in both cases
compiler will define __aarch64__.

>> +  aarch64*-*-linux*)
>> +    MAKEFILE_PREFIX=linux_arm64
>> +    INSTALL_PREFIX=linux
>> +    PLATFORM=LINUX
>> +    AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
>> +    EDITLINE_FLG=Y
>> +    SHRLIB_EXT=so
>> +    STD_EDITLINE=true
>> +    STD_ICU=true
>> +    ATOMIC_LIBS=-latomic_ops
>> +    ;;
>
> We might need to set libdir the same way we do in x86_64*-*-linux*
> to handle distributions using /usr/lib64 correctly.
>

Do as you see fit / as done for other platforms  =) setting lib64
isn't needed for my distribution.

Regards,

Dmitrijs.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to