Message-ID: <0D87837E-C493-4214-B9FA-0D6AF0E45634@r-project.org>
Date: 2011-02-21T15:18:03Z
From: Simon Urbanek
Subject: Using src/ to create executable - how to not build shared objects?
In-Reply-To: <AANLkTi=d=7VOY+Aj9e9h1rranRQ0HO8XyJKgYnw5ZYmi@mail.gmail.com>
On Feb 21, 2011, at 3:14 AM, Henrik Bengtsson wrote:
> Hi.
>
> I can use the src/ directory to create executable, cf. Section
> 'Package subdirectories' in 'Writing R Extensions":
>
> "A few packages use the src directory for purposes other than making a
> shared object (e.g. to create executables). Such packages should have
> files src/Makefile and src/Makefile.win (unless intended for only
> Unix-alikes or only Windows)."
>
> When doing this, how can I turn off the building of the shared objects
> that are created under libs/<arch>/? Currently they end up in the
> built package binaries, e.g. *.zip and *.tgz.
>
If you build an executable then it won't be copied anyway. If you are building something that looks like a shared object then I'm a bit puzzled why you would not want to install it as that is the only way you can install it in multi-arch build (since you can't use inst in that case). That said, you can simply build your "executable" in a subdirectory which is I'd recommend for anything other than contents that you want R to deal with -- but, again, beware of multi-arch settings as it's get really tricky.
Cheers,
Simon