Skip to content

Commit

Permalink
we do not need prefix, and the install path can be referenced directl…
Browse files Browse the repository at this point in the history
…y as a property

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Mar 24, 2021
1 parent 16bd9eb commit f50c254
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions var/spack/repos/builtin/packages/debugedit/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
import os


class Debugedit(AutotoolsPackage):
Expand All @@ -29,6 +28,5 @@ class Debugedit(AutotoolsPackage):

def build(self, spec, prefix):
# requires libiberty
libiberty = spec['libiberty'].prefix.include
include_path = os.path.join(libiberty, "libiberty")
make('CPPFLAGS=-I%s' % include_path, 'PREFIX=' + prefix)
libiberty = spec['libiberty'].prefix.include.libiberty
make('CPPFLAGS=-I%s' % libiberty)

0 comments on commit f50c254

Please sign in to comment.