gitee.com/mysnapcore/mysnapd@v0.1.0/cmd/snap-update-ns/bootstrap_ppc64le.go (about)

     1  // -*- Mode: Go; indent-tabs-mode: t -*-
     2  //
     3  //go:build ppc64le && go1.7 && !go1.8
     4  // +build ppc64le,go1.7,!go1.8
     5  
     6  /*
     7   * Copyright (C) 2017 Canonical Ltd
     8   *
     9   * This program is free software: you can redistribute it and/or modify
    10   * it under the terms of the GNU General Public License version 3 as
    11   * published by the Free Software Foundation.
    12   *
    13   * This program is distributed in the hope that it will be useful,
    14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16   * GNU General Public License for more details.
    17   *
    18   * You should have received a copy of the GNU General Public License
    19   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    20   *
    21   */
    22  
    23  package main
    24  
    25  /*
    26  #cgo LDFLAGS: -no-pie
    27  
    28  // we need "-no-pie" for ppc64le,go1.7 to work around build failure on
    29  // ppc64el with go1.7, see
    30  // https://forum.snapcraft.io/t/snapd-master-fails-on-zesty-ppc64el-with-r-ppc64-addr16-ha-for-symbol-out-of-range/
    31  */
    32  import "C"