Headless built question

Discussion of Transmission that doesn't fit in the other categories
Post Reply
yopnono
Posts: 33
Joined: Fri Apr 09, 2010 10:38 am

Headless built question

Post by yopnono »

Hi.
I'm building/built the ver 1.92 for a headless machine, debian/sid arm.
No problem what so ever to compile it.

And I was using this config: ./configure --disable-cli --disable-gtk --disable-nls --enable-static --disable-libcanberra --disable-mac --disable-libappindicator --disable-libnotify CPPFLAGS=-DTR_EMBEDDED

But what is the CPPFLAGS=-DTR_EMBEDDED for?

//Mike

EDIT: arch ARM
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Headless built question

Post by rb07 »

what is the CPPFLAGS=-DTR_EMBEDDED for?
Not much, if you check the code you'l find:

Code: Select all

#ifdef TR_EMBEDDED
 #define TR_DEFAULT_ENCRYPTION   TR_CLEAR_PREFERRED
#else
 #define TR_DEFAULT_ENCRYPTION   TR_ENCRYPTION_PREFERRED
#endif
and

Code: Select all

#if defined(TR_EMBEDDED) && !defined(DISABLE_GETTEXT)
 #define DISABLE_GETTEXT
#endif
Which just sets the default encryption mode differently, and disables gettext. The first is probably to use less CPU by default on (very) small systems; the second is probably to work around some bug on one or more of those small systems.

Not worth using the define unless you find a problem with those characteristics.

I don't use the define, and transmission works fine on an HP MediaVault (ARM with little RAM) using encryption most of the time.
yopnono
Posts: 33
Joined: Fri Apr 09, 2010 10:38 am

Re: Headless built question

Post by yopnono »

Ok so it's good for nothing then, so to speak :)
Post Reply