Project

General

Profile

Bug #562

building shared or static libs by default

Added by Christoph Junghans about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Opensuse 11.* does not deliver static libs (.a files) in their packages anymore, which lead to some compile problems when using fftw.
On the other hand the mpi packages (mpich/openmpi) come with shared libs (.so files). So building shared and static libs by default by fine.

However on AIX shared libs lead to problem for that reason I would add a block like:

AC_ENABLE_SHARED(yes)
[case "${host_os}" in
-aix) AC_ENABLE_SHARED(no) ;;
esac])
if test "$enable_mpi" = "yes"; then
AC_ENABLE_SHARED(no)
fi

in the head of configure. In cmake shared libs are build by default (if not mpi).
and i have not used cmake on AIX so far.

Associated revisions

Revision 4d5160d5 (diff)
Added by Christoph Junghans almost 9 years ago

configure: build shared libs unless mpi enabled (bug #562)

History

#1 Updated by Szilárd Páll about 9 years ago

(In reply to comment #0)

Opensuse 11.* does not deliver static libs (.a files) in their packages
anymore, which lead to some compile problems when using fftw.
On the other hand the mpi packages (mpich/openmpi) come with shared libs (.so
files). So building shared and static libs by default by fine.

However on AIX shared libs lead to problem for that reason I would add a block
like:

AC_ENABLE_SHARED(yes)
[case "${host_os}" in
-aix) AC_ENABLE_SHARED(no) ;;
esac])
if test "$enable_mpi" = "yes"; then
AC_ENABLE_SHARED(no)
fi

in the head of configure. In cmake shared libs are build by default (if not
mpi).
and i have not used cmake on AIX so far.

Bump! Has anyone looked into this?

#2 Updated by Rossen Apostolov about 9 years ago

Hi Christoph,

Could you test and apply a patch for this bug?

Thanks! Rossen

#3 Updated by Christoph Junghans almost 9 years ago

Behavior changed in commit 4d5160d5c20761ac03fc2690e7c04deda3123efa

Also available in: Atom PDF