Just to report that using the prefix in the subj the libs are put in
/opt/harbour/lib/harbour.
make_gnu.sh worked since it tested only for /opt|/usr.
I've tried to replicate it in global.cf but I didn't find any clean
solution so to fix it
I've removed from config/global.cf:

# Not perfect, please enhance it.
     ifneq ($(findstring /usr,$(HB_INSTALL_PREFIX)),)
        LIBPOSTFIX := $(DIRSEP)harbour
     else
        ifneq ($(findstring /opt,$(HB_INSTALL_PREFIX)),)
           LIBPOSTFIX := $(DIRSEP)harbour
        endif
     endif

Hopefully this can be enhanced, I'm not very familiar
with these Linux rules/customs, so it's a little bit
difficult. If we know the rules/cases better probably
there is a way to solve it inside global.cf.

I think that set correctly HB_INSTALL_PREFIX should be an user's
responsibility and a safe
default could be $HOME/harbour-ver.
Here the main goal seem to respect HB_INSTALL_PREFIX and protect
casual user from running "make install"
without knowing well what's he doing.

I couldn't agree more. The safest place to install files
is the source tree itself. This is is how it's done already
on non-*nix OSes and such installed Harbour is perfectly usable.

If this is acceptable for Linux users, it's very easy to
make this change.

deb and rpm can be used to put things in system wide places.

Agreed.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to