1

我最近下载了 graclus 软件。在尝试安装它时,我必须使用一些选项来完成 makefile.in。我想出了其他选项,但我找不到我们为 LDOPTIONS 编写的内容。

任何人都可以帮助我弄清楚我应该填写编译器使用的选项吗?帮助将不胜感激。

//这里是makefile.in

# Which compiler to use
CC = g++

# What optimization level to use
OPTFLAGS = -O2 -fPIC

# What options to be used by the compiler
COPTIONS = -DNUMBITS=32

# What options to be used by the loader
LDOPTIONS =

# What archiving to use 
AR = ar rv

# What to use for indexing the archive
RANLIB = ranlib

ARCH = P4SSE2

LAPACK = -llapack_$(ARCH)

ARPACK = -lcarpack_$(ARCH)

ATLAS  = -latlas_$(ARCH)

CBLAS  = -lcblaswr -lcblas -lblas -lmyf2c

GSL = -lgslcblas -lgsl

SPARSE = -lsparse

UTIL = -lmyutil
4

1 回答 1

1

由于您提供的 Makefile 只是一个摘录,并且您没有提到您正在使用什么包或库来编译它,所以我只是在这里猜测一下。

LDOPTIONS可以提供与常用变量LDFLAGS类似的用途,它提供了一种为链接器指定额外标志的方法。这取决于您使用的链接器。如果您使用 gcc,则可以运行man ld来查看链接器选项列表。

于 2013-01-24T02:16:06.467 回答